tdb: suppress record write locks when allrecord lock is taken.
[ira/wip.git] / lib / tdb / common / check.c
index f0a15f801b6e51c76cbff860ab007bfad4b0878c..6bbfd7d82aceecc4114395a2d61619e373525f2e 100644 (file)
@@ -370,7 +370,7 @@ int tdb_check(struct tdb_context *tdb,
                                goto free;
                        break;
                case TDB_RECOVERY_MAGIC:
-               case 0: /* Used for invalid (or in-progress) recovery area. */
+               case TDB_RECOVERY_INVALID_MAGIC:
                        if (recovery_start != off) {
                                TDB_LOG((tdb, TDB_DEBUG_ERROR,
                                         "Unexpected recovery record at offset %d\n",