1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-22 05:57:43 +03:00

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)
This commit is contained in:
Andrew Bartlett 2018-05-28 14:12:52 +12:00 committed by Karolin Seeger
parent d1b59c266b
commit 703ca1a427

View File

@ -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;
}