From: Andrew Deason Date: Wed, 24 Nov 2010 15:03:19 +0000 (-0500) Subject: ubik: Log a message when we replay the trans log X-Git-Tag: upstream/1.8.0_pre1^2~4451 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=d29550a438a60dd918938f484c7b75e25478abd9;p=packages%2Fo%2Fopenafs.git ubik: Log a message when we replay the trans log It can be helpful to know that an interrupted transaction was replayed on startup, and this should be rare. So log a message when that happens, indicating what db version we replayed to. Change-Id: I8b2562dea2811190d1a45ba47f362a2441f39dfa Reviewed-on: http://gerrit.openafs.org/3385 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- diff --git a/src/ubik/recovery.c b/src/ubik/recovery.c index 89f3843fa..e47beb5b4 100644 --- a/src/ubik/recovery.c +++ b/src/ubik/recovery.c @@ -289,6 +289,9 @@ ReplayLog(struct ubik_dbase *adbase) code = (*adbase->setlabel) (adbase, 0, &version); if (code) return code; + ubik_print("Successfully replayed log for interrupted " + "transaction; db version is now %ld.%ld\n", + (long) version.epoch, (long) version.counter); logIsGood = 1; break; /* all done now */ } else if (opcode == LOGTRUNCATE) {