mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +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>
This commit is contained in:
parent
3632775d7a
commit
9e143ee9b9
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user