dsdb: Improve clarity by adding a comment in replmd_delete_internals()
authorAndrew Bartlett <abartlet@samba.org>
Sun, 23 Feb 2020 21:30:26 +0000 (10:30 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 28 Feb 2020 03:08:46 +0000 (03:08 +0000)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
source4/dsdb/samdb/ldb_modules/repl_meta_data.c

index 3395e6395ac8bf0de2504c1e3eaf463d35319e7f..824a4612f5a4fe58e4c364d4bcc11377079a0916 100644 (file)
@@ -4664,6 +4664,11 @@ static int replmd_delete_internals(struct ldb_module *module, struct ldb_request
                                                      el->name,
                                                      ldb_attr_cmp,
                                                      attr);
+                               /*
+                                * If we are preserving, do not do the
+                                * ldb_msg_add_empty() below, continue
+                                * to the next element
+                                */
                                if (attr != NULL) {
                                        continue;
                                }