ubik: Replay the transaction log label correctly
authorAndrew Deason <adeason@sinenomine.net>
Wed, 24 Nov 2010 14:36:05 +0000 (09:36 -0500)
committerDerrick Brashear <shadow@dementia.org>
Thu, 25 Nov 2010 03:42:15 +0000 (19:42 -0800)
commit1e8598b334b4354a3998b1e5fe189f3f33957048
treee5e1d32dc256c79e8c38c41fec3cc74d6b7acf7d
parent0af17e7eccb79dd7d618c98dc0b489d55209df50
ubik: Replay the transaction log label correctly

Commit eec0d94f519b3e27f255b9b7a637df043951424e fixed the transaction
replay log code to correctly identify valid transaction logs on
little-endian systems, but missed ntohl'ing the database label read in
a LOGEND opcode. Fix that, so the database is labelled correctly when
replayed from a transaction log.

And while we're here, actually pass a struct ubik_version* to
adbase->setlabel, to make it a little more clear what's happening.

Change-Id: I7edc33a4539f3b2fa342335c08f958b5dfb97f57
Reviewed-on: http://gerrit.openafs.org/3384
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/ubik/recovery.c