diff options
author | Fernando J V da Silva <fernandojvsilva@yahoo.com.br> | 2010-01-07 16:30:05 -0200 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-01-14 15:37:58 +1100 |
commit | e30d009965a789e8a4495609f8d19adb621df6f4 (patch) | |
tree | 12ed0c7fe56d36c647833d6b478de8a5afe6c8d3 /source4/dsdb/repl | |
parent | ac224452b94865db346ed68dc517f84d40e6303c (diff) | |
download | samba-e30d009965a789e8a4495609f8d19adb621df6f4.tar.gz samba-e30d009965a789e8a4495609f8d19adb621df6f4.tar.bz2 samba-e30d009965a789e8a4495609f8d19adb621df6f4.zip |
s4-drs: Store uSNUrgent for Urgent Replication
When a object or attribute is created/updated/deleted, according
to [MS-ADTS] 3.1.1.5.1.6, it stores the uSNUrgent on @REPLCHANGED
for the partitions that it belongs.
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'source4/dsdb/repl')
-rw-r--r-- | source4/dsdb/repl/drepl_notify.c | 2 | ||||
-rw-r--r-- | source4/dsdb/repl/replicated_objects.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source4/dsdb/repl/drepl_notify.c b/source4/dsdb/repl/drepl_notify.c index 8198e4e828..84d9eacab3 100644 --- a/source4/dsdb/repl/drepl_notify.c +++ b/source4/dsdb/repl/drepl_notify.c @@ -318,7 +318,7 @@ static WERROR dreplsrv_notify_check(struct dreplsrv_service *s, } /* loads the partition uSNHighest */ - ret = dsdb_load_partition_usn(s->samdb, p->dn, &uSN); + ret = dsdb_load_partition_usn(s->samdb, p->dn, &uSN, NULL); if (ret != LDB_SUCCESS || uSN == 0) { /* nothing to do */ return WERR_OK; diff --git a/source4/dsdb/repl/replicated_objects.c b/source4/dsdb/repl/replicated_objects.c index c72b107b75..b95bf87e36 100644 --- a/source4/dsdb/repl/replicated_objects.c +++ b/source4/dsdb/repl/replicated_objects.c @@ -284,7 +284,7 @@ WERROR dsdb_extended_replicated_objects_commit(struct ldb_context *ldb, return WERR_FOOBAR; } - ret = dsdb_load_partition_usn(ldb, objects->partition_dn, &seq_num1); + ret = dsdb_load_partition_usn(ldb, objects->partition_dn, &seq_num1, NULL); if (ret != LDB_SUCCESS) { DEBUG(0,(__location__ " Failed to load partition uSN\n")); ldb_transaction_cancel(ldb); @@ -307,7 +307,7 @@ WERROR dsdb_extended_replicated_objects_commit(struct ldb_context *ldb, return WERR_FOOBAR; } - ret = dsdb_load_partition_usn(ldb, objects->partition_dn, &seq_num2); + ret = dsdb_load_partition_usn(ldb, objects->partition_dn, &seq_num2, NULL); if (ret != LDB_SUCCESS) { DEBUG(0,(__location__ " Failed to load partition uSN\n")); ldb_transaction_cancel(ldb); |