vacuum: fix crash on vacuum abort
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 26 Jul 2010 06:38:07 +0000 (16:08 +0930)
committerMichael Adam <obnox@samba.org>
Thu, 12 Jan 2012 07:47:38 +0000 (08:47 +0100)
commit3aabb0ea3b512d7474564bc7bae9ec6925fa25ef
tree1f2a20eb111153d7ea7d4fecaa0b955382e7a86c
parent4c5589f6c7334445eb215025d98e12d48fde9cd3
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>
(cherry picked from commit 8e518950ba281502318d6300f7a5ec6cdf6b5674)
server/ctdb_vacuum.c