From c9ea47ec6bf2d0cb868e94a594c108ee02b1aa34 Mon Sep 17 00:00:00 2001 From: Tim Beale Date: Mon, 18 Sep 2017 16:39:44 +1200 Subject: [PATCH] replmd: Remove unused originating_usn variable The previous refactor makes it obvious that we aren't actually using this variable for anything. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13055 Signed-off-by: Tim Beale Reviewed-by: Garming Sam Reviewed-by: Andrew Bartlett --- source4/dsdb/samdb/ldb_modules/repl_meta_data.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c index f0c5ab600a2..73ec9c83232 100644 --- a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c +++ b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c @@ -7154,7 +7154,6 @@ static bool replmd_link_update_is_newer(struct parsed_dn *pdn, /* see if this update is newer than what we have already */ struct GUID invocation_id = GUID_zero(); uint32_t version = 0; - uint32_t originating_usn = 0; NTTIME change_time = 0; if (pdn == NULL) { @@ -7165,7 +7164,6 @@ static bool replmd_link_update_is_newer(struct parsed_dn *pdn, dsdb_get_extended_dn_guid(pdn->dsdb_dn->dn, &invocation_id, "RMD_INVOCID"); dsdb_get_extended_dn_uint32(pdn->dsdb_dn->dn, &version, "RMD_VERSION"); - dsdb_get_extended_dn_uint32(pdn->dsdb_dn->dn, &originating_usn, "RMD_ORIGINATING_USN"); dsdb_get_extended_dn_nttime(pdn->dsdb_dn->dn, &change_time, "RMD_CHANGETIME"); return replmd_update_is_newer(&invocation_id, -- 2.47.3