tdb: Remove unnecessary checks
[metze/samba/wip.git] / lib / tdb / common / tdb.c
index b3dbc715153946b3f915572f52adfabab72a8d33..0f362cf0c33b8e8072552bd6187adb371d23e457 100644 (file)
@@ -157,9 +157,7 @@ static int tdb_update_hash(struct tdb_context *tdb, TDB_DATA key, uint32_t hash,
 
        /* it could be an exact duplicate of what is there - this is
         * surprisingly common (eg. with a ldb re-index). */
-       if (rec.key_len == key.dsize &&
-           rec.data_len == dbuf.dsize &&
-           rec.full_hash == hash &&
+       if (rec.data_len == dbuf.dsize &&
            tdb_parse_record(tdb, key, tdb_update_hash_cmp, &dbuf) == 0) {
                return 0;
        }