mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +03:00
s4-ldb: delete empty index records
This commit is contained in:
parent
936c8f311a
commit
fcd16eab6c
@ -199,6 +199,14 @@ static int ltdb_dn_list_store_full(struct ldb_module *module, struct ldb_dn *dn,
|
||||
struct ldb_message *msg;
|
||||
int ret;
|
||||
|
||||
if (list->count == 0) {
|
||||
ret = ltdb_delete_noindex(module, dn);
|
||||
if (ret == LDB_ERR_NO_SUCH_OBJECT) {
|
||||
return LDB_SUCCESS;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
msg = ldb_msg_new(module);
|
||||
if (!msg) {
|
||||
ldb_module_oom(module);
|
||||
|
Loading…
x
Reference in New Issue
Block a user