tdb_compat: only use hashsize attribute when O_CREAT
commitdd1d57370d6d83473a7ada3ceb8d250d357ff429
authorRusty Russell <rusty@rustcorp.com.au>
Sun, 29 Jan 2012 23:36:55 +0000 (30 10:06 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Sun, 29 Jan 2012 23:36:55 +0000 (30 10:06 +1030)
treea4f36a35bd0b1c0a5e1f9f271741b175f8e0d35c
parentae62d46a9fcfee9db177ddb3d0f1f2c28c889a35
tdb_compat: only use hashsize attribute when O_CREAT

tdb2 complains if you specify a tdb1 hashsize, and you're not actually
trying to create a new database.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
lib/tdb_compat/tdb_compat.c