vacuum: fix crash on vacuum abort
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 26 Jul 2010 06:38:07 +0000 (16:08 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 18 Aug 2010 01:30:11 +0000 (11:00 +0930)
commit8e518950ba281502318d6300f7a5ec6cdf6b5674
tree33c0d2c6c2394b7470b2e9640c32205a33de6381
parentf5d7dc679501e607c2c83a248a89d3cada9df146
vacuum: fix crash on vacuum abort

Martin Schwenke discovered that 517f05e42f17766b1e8db8f1f4789cbad968e304
("freeze: abort vacuuming when we're going to freeze.") used ctdb_db for
a logging message which is in fact uninitialized, causing a crash (even
if it wasn't actually logged).

Initialize it properly.  Also fix incorrect format in another logging
message introduced in that same change.

CQ:S1019093
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
server/ctdb_vacuum.c