tdb2: make tdb1 use same low-level lock functions.
[ccan] / ccan / tdb2 / transaction.c
index a29acf96e2d417c8c3d79313f8ada959f7c5719c..2afc1789b0e1fa370d8f28453b33e734d6c035b3 100644 (file)
@@ -1006,7 +1006,7 @@ static enum TDB_ERROR _tdb_transaction_prepare_commit(struct tdb_context *tdb)
        methods = tdb->transaction->io_methods;
 
        /* upgrade the main transaction lock region to a write lock */
-       ecode = tdb_allrecord_upgrade(tdb);
+       ecode = tdb_allrecord_upgrade(tdb, TDB_HASH_LOCK_START);
        if (ecode != TDB_SUCCESS) {
                return ecode;
        }