diff options
author | Andrew Bartlett <abartlet@samba.org> | 2018-05-28 14:12:52 +1200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2018-06-26 09:19:16 +0200 |
commit | 703ca1a427a468f763538f1371c388d25745b2dd (patch) | |
tree | b2154e958b48b1034795e5a77756da52626ed0e9 /lib/ldb/ldb_tdb/ldb_index.c | |
parent | d1b59c266b2076a286ff971769b9380c834c29ee (diff) | |
download | samba-703ca1a427a468f763538f1371c388d25745b2dd.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>
(cherry picked from commit 9e143ee9b9f7be53c193cee3153f64c4dedc07e9)
Diffstat (limited to 'lib/ldb/ldb_tdb/ldb_index.c')
-rw-r--r-- | lib/ldb/ldb_tdb/ldb_index.c | 7 |
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 6da64cfa4ce..3a1aa23aa7e 100644 --- a/lib/ldb/ldb_tdb/ldb_index.c +++ b/lib/ldb/ldb_tdb/ldb_index.c @@ -1626,7 +1626,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; } |