1
0
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:
Andrew Tridgell 2009-10-22 11:14:36 +11:00
parent 936c8f311a
commit fcd16eab6c

View File

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