diff options
author | Andrew Bartlett <abartlet@samba.org> | 2010-03-22 16:00:39 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2010-03-22 20:24:41 +1100 |
commit | d0b54476fc9f855d1e482597538a7ec60e04f331 (patch) | |
tree | ee3943cda24bf0d24678726389751f75c9cbdafc /source4/dsdb/samdb/ldb_modules/repl_meta_data.c | |
parent | 639728a29873e4cf59dfa149a231eae353f3753a (diff) | |
download | samba-d0b54476fc9f855d1e482597538a7ec60e04f331.tar.gz samba-d0b54476fc9f855d1e482597538a7ec60e04f331.tar.bz2 samba-d0b54476fc9f855d1e482597538a7ec60e04f331.zip |
s4:dsdb Move dsdb_save_partition_usn() to be a module helper function
This function should not traverse the module stack again, but instead
run from this point. Also add a matching
dsdb_module_load_partition_usn() and change repl_meta_data to match.
Andrew Bartlett
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules/repl_meta_data.c')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/repl_meta_data.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c index 91cd825a84..8b4e012ba9 100644 --- a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c +++ b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c @@ -454,15 +454,14 @@ static int replmd_notify_store(struct ldb_module *module) { struct replmd_private *replmd_private = talloc_get_type(ldb_module_get_private(module), struct replmd_private); - struct ldb_context *ldb = ldb_module_get_ctx(module); while (replmd_private->ncs) { int ret; struct nc_entry *modified_partition = replmd_private->ncs; - ret = dsdb_save_partition_usn(ldb, modified_partition->dn, - modified_partition->mod_usn, - modified_partition->mod_usn_urgent); + ret = dsdb_module_save_partition_usn(module, modified_partition->dn, + modified_partition->mod_usn, + modified_partition->mod_usn_urgent); if (ret != LDB_SUCCESS) { DEBUG(0,(__location__ ": Failed to save partition uSN for %s\n", ldb_dn_get_linearized(modified_partition->dn))); |