1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/lib/dbwrap
Ralph Boehme 8082e2eb7e lib/dbwrap: reset deleted record to tdb_null
This allows the calling the following sequence of dbwrap functions:

  dbwrap_delete_record(rec);
  data = dbwrap_record_get_value(rec);

without triggering the assert rec->value_valid inside dbwrap_record_get_value().

Note that dbwrap_record_storev() continues to invalidate the record, so this
change somewhat blurs our semantics.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14882

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Nov  4 19:49:47 UTC 2021 on sn-devel-184
2021-11-04 19:49:47 +00:00
..
dbwrap_local_open.c dbwrap: Remove calls to loadparm 2018-04-24 01:53:19 +02:00
dbwrap_private.h dbwrap: Remove "db_context->try_fetch_locked()" fn pointer 2021-06-04 16:47:34 +00:00
dbwrap_rbt.c dbwrap_rbt: support TDB_INSERT and TDB_MODIFY store flags 2020-06-10 19:08:40 +00:00
dbwrap_rbt.h
dbwrap_tdb.c dbwrap: Remove "db_context->try_fetch_locked()" fn pointer 2021-06-04 16:47:34 +00:00
dbwrap_tdb.h dbwrap: Remove loadparm_context from db_open_tdb 2015-09-22 04:51:16 +02:00
dbwrap_util.c dbwrap: Simplify dbwrap_unmarshall_fn 2017-08-16 00:27:10 +02:00
dbwrap.c lib/dbwrap: reset deleted record to tdb_null 2021-11-04 19:49:47 +00:00
dbwrap.h dbwrap: Remove unused dbwrap_try_fetch_locked() 2021-06-04 16:47:34 +00:00
wscript_build dbwrap: Remove dependency on samba-hostconfig 2018-04-24 01:53:19 +02:00