When opening an existing DB, don't require the hash_size specified to
commite412dd6d7e5a41de94c07c64b186390ccce104cc
authorMartin Pool <mbp@samba.org>
Tue, 11 Mar 2003 04:21:14 +0000 (11 04:21 +0000)
committerMartin Pool <mbp@samba.org>
Tue, 11 Mar 2003 04:21:14 +0000 (11 04:21 +0000)
tree57bd03d132364090accaecb1af0eeea72816f1b2
parentc5c1a7979385778c08d6dd7796cfe8be1815992f
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.
source/tdb/tdb.c