1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +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_private.h dbwrap: Remove "db_context->try_fetch_locked()" fn pointer 2021-06-04 16:47:34 +00:00
dbwrap_rbt.c
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_util.c
dbwrap.c lib/dbwrap: reset deleted record to tdb_null 2021-11-04 19:49:47 +00:00
dbwrap.h
wscript_build