When opening an existing DB, don't require the hash_size specified to
authorMartin Pool <mbp@samba.org>
Tue, 11 Mar 2003 04:41:22 +0000 (04:41 +0000)
committerMartin Pool <mbp@samba.org>
Tue, 11 Mar 2003 04:41:22 +0000 (04:41 +0000)
commitd606f8cb1eb69d897400c3a4f9c6813150d53c3a
tree5e8518c8b0e62811382953803f6d4f20fb00256e
parent47247802125533e28740cc82657b972a3bdd17ca
When opening an existing DB, don't require the hash_size specified to
the open call to be the same as that of the existing tdb.  The
specified hash_size is only used if the tdb needs to be (re)created.

With this patch in place, tdbtool can open the printing tdbs, which
are created with a hash_size of 5000.  Before it would fail with EIO.
(This used to be commit 7090d9f6939b3c6334fba40b0741f8f899aba31a)
source3/tdb/tdb.c