]> git.michaelhowe.org Git - packages/o/openafs.git/commit
pt_util: Initialise empty database correctly
authorSimon Wilkinson <sxw@inf.ed.ac.uk>
Sun, 13 Mar 2011 14:45:04 +0000 (14:45 +0000)
committerDerrick Brashear <shadow@dementia.org>
Mon, 14 Mar 2011 17:08:48 +0000 (10:08 -0700)
commitfbd4a43ddf5131cb597d46cff0419e7685e3210d
tree01faadad50c7748e98ec3813ce2bcf2aa8ebedf2
parentc97ec074977563b756e9ad1c9773c5880965c664
pt_util: Initialise empty database correctly

Commit dc8f18d6f5003712bc9ef989363137a84953df07 broke pt_util's
initialisation of empty databases. This is because Initdb was changed
to call Initdb_check through the ubik_CheckCache wrapper. However, that
wrapper was defined as a no-op in pt_util's ubik-shim.

Modify pt_util's ubik_CheckCache so that it always calls into the
wrapper routine - this mimics the old behaviour.

Add a trival test for pt_util - check that we can build the database,
using the example from the manpage, and then that the built database
matches what we expect.

(cherry picked from commit 4953ce8070497bc494e624d72271bcbc5dc1dbe7)
Reviewed-on: http://gerrit.openafs.org/4211
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Change-Id: If4cfbda25f8d1c5e1da4c1e42982c74becf386e3
Reviewed-on: http://gerrit.openafs.org/4217
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/ptserver/ubik.c
tests/TESTS
tests/ptserver/pt_util-t [new file with mode: 0755]