]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
dbwrap: Remove unused dbwrap_try_fetch_locked()
authorVolker Lendecke <vl@samba.org>
Mon, 21 Dec 2020 13:37:12 +0000 (14:37 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 4 Jun 2021 16:47:34 +0000 (16:47 +0000)
Small simplification, this has not been used since 2014 when the
notifyd went in. Can easily be added if needed again.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/dbwrap/dbwrap.c
lib/dbwrap/dbwrap.h

index 735ed169690ebeaed79d7c28b55162d0502f9d4a..cc685a2fa6969f038a1933d35552a3c2cdf78ae0 100644 (file)
@@ -266,16 +266,6 @@ struct db_record *dbwrap_fetch_locked(struct db_context *db,
                                            db->fetch_locked);
 }
 
-struct db_record *dbwrap_try_fetch_locked(struct db_context *db,
-                                     TALLOC_CTX *mem_ctx,
-                                     TDB_DATA key)
-{
-       return dbwrap_fetch_locked_internal(
-               db, mem_ctx, key,
-               db->try_fetch_locked
-               ? db->try_fetch_locked : db->fetch_locked);
-}
-
 struct db_context *dbwrap_record_get_db(struct db_record *rec)
 {
        return rec->db;
index 0069353fae5b7078a2ff1f60bd45f43d889b211f..9b8bf811ca6cb083922a33ff9a8b3dbb004b7ab2 100644 (file)
@@ -74,9 +74,6 @@ NTSTATUS dbwrap_record_delete(struct db_record *rec);
 struct db_record *dbwrap_fetch_locked(struct db_context *db,
                                      TALLOC_CTX *mem_ctx,
                                      TDB_DATA key);
-struct db_record *dbwrap_try_fetch_locked(struct db_context *db,
-                                         TALLOC_CTX *mem_ctx,
-                                         TDB_DATA key);
 struct db_context *dbwrap_record_get_db(struct db_record *rec);
 
 void dbwrap_lock_order_lock(const char *db_name,