summaryrefslogtreecommitdiff
path: root/lib/ldb
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2018-05-28 14:12:52 +1200
committerAndrew Bartlett <abartlet@samba.org>2018-05-30 04:23:27 +0200
commit9e143ee9b9f7be53c193cee3153f64c4dedc07e9 (patch)
tree3ab370aa553644b9849abafdc8330be8474178ab /lib/ldb
parent3632775d7ad31e06437ed76b8731d9895930caa1 (diff)
downloadsamba-9e143ee9b9f7be53c193cee3153f64c4dedc07e9.tar.gz
ldb: Explain why an entry can vanish from the index
Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Diffstat (limited to 'lib/ldb')
-rw-r--r--lib/ldb/ldb_tdb/ldb_index.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/ldb/ldb_tdb/ldb_index.c b/lib/ldb/ldb_tdb/ldb_index.c
index 1a5867b7a0d..041dbdc4ed6 100644
--- a/lib/ldb/ldb_tdb/ldb_index.c
+++ b/lib/ldb/ldb_tdb/ldb_index.c
@@ -1821,7 +1821,12 @@ static int ltdb_index_filter(struct ltdb_private *ltdb,
LDB_UNPACK_DATA_FLAG_NO_DATA_ALLOC|
LDB_UNPACK_DATA_FLAG_NO_VALUES_ALLOC);
if (ret == LDB_ERR_NO_SUCH_OBJECT) {
- /* the record has disappeared? yes, this can happen */
+ /*
+ * the record has disappeared? yes, this can
+ * happen if the entry is deleted by something
+ * operating in the callback (not another
+ * process, as we have a read lock)
+ */
talloc_free(msg);
continue;
}