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>
Mon, 26 Jul 2010 06:38:07 +0000 (16:08 +0930)
commit61ff41d0619bb1b89aee7ad8b15e0583edad528f
tree1a2fb1e9e7f8b9ac910053107e9f551e7e6b6571
parent2a5e4101f87f763cb55b8d1f4ab6a521abd1e41d
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