]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4-rpc_server/drsuapi: Add tmp_highest_usn tracking to replication log
authorAndrew Bartlett <abartlet@samba.org>
Sun, 23 Jul 2023 23:35:45 +0000 (11:35 +1200)
committerJule Anger <janger@samba.org>
Mon, 21 Aug 2023 07:40:16 +0000 (07:40 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15401

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit 0d9ea6c559317e19642662220c089e2d59ef3ecd)

source4/rpc_server/drsuapi/getncchanges.c

index 74b173c396501bb315b3014079927dc8f4aad5bc..9eb75c8502a52ea609c2efa5e130c7f28b1c3611 100644 (file)
@@ -3507,9 +3507,10 @@ allowed:
                        getnc_state->last_dn = talloc_move(getnc_state, &msg->dn);
                }
 
-               DEBUG(8,(__location__ ": %s object %s\n",
+               DEBUG(8,(__location__ ": %s object %s new tmp_highest_usn=%" PRIu64 "\n",
                         new_objs ? "replicating" : "skipping send of",
-                        ldb_dn_get_linearized(msg->dn)));
+                        ldb_dn_get_linearized(msg->dn),
+                        r->out.ctr->ctr6.new_highwatermark.tmp_highest_usn));
 
                getnc_state->total_links += (getnc_state->la_count - old_la_index);