]> git.ozlabs.org Git - ccan/blobdiff - ccan/tdb/open.c
tdb: cleanup: rename global_lock to allrecord_lock.
[ccan] / ccan / tdb / open.c
index 9a3457bc47555960ec0dce4b8665e3b242dfa446..d1a34bf1a2a47172fb4d534c134d0fb52aeeec29 100644 (file)
@@ -461,7 +461,7 @@ static int tdb_reopen_internal(struct tdb_context *tdb, bool active_lock)
                return 0; /* Nothing to do. */
        }
 
-       if (tdb->num_locks != 0 || tdb->global_lock.count) {
+       if (tdb->num_locks != 0 || tdb->allrecord_lock.count) {
                TDB_LOG((tdb, TDB_DEBUG_ERROR, "tdb_reopen: reopen not allowed with locks held\n"));
                goto fail;
        }