tdb: cleanup: rename global_lock to allrecord_lock.
[samba.git] / lib / tdb / common / open.c
index 35968c9eaf67df9d6d962e5279535330859e389d..9fbd5fdea92a9c4e15e165ca623c3447e0ab1e29 100644 (file)
@@ -465,7 +465,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;
        }