[SCM] Samba Shared Repository - branch master updated - tevent-0-9-8-364-g45cebf7
Andrew Tridgell
tridge at samba.org
Wed Sep 16 04:59:07 MDT 2009
The branch, master has been updated
via 45cebf7f113c3ff3c1b029c591dbbbb879b992f8 (commit)
via 98f2a3b6a3a068e4d9741eed8a8648d85c318207 (commit)
from 033ced60ac734161686bd3da685f2d7b056e17c8 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 45cebf7f113c3ff3c1b029c591dbbbb879b992f8
Author: Andrew Tridgell <tridge at samba.org>
Date: Wed Sep 16 03:57:56 2009 -0700
s4-repl: raise a debug level
commit 98f2a3b6a3a068e4d9741eed8a8648d85c318207
Author: Andrew Tridgell <tridge at samba.org>
Date: Wed Sep 16 03:43:37 2009 -0700
s4-dsdb: treat uSNHighest as 0 if @REPLCHANGED doesn't exist
When a partition is first created it still needs a uSNHighest value
-----------------------------------------------------------------------
Summary of changes:
source4/dsdb/common/util.c | 8 ++++++++
source4/dsdb/repl/drepl_out_pull.c | 2 +-
2 files changed, 9 insertions(+), 1 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source4/dsdb/common/util.c b/source4/dsdb/common/util.c
index c2636e1..633279e 100644
--- a/source4/dsdb/common/util.c
+++ b/source4/dsdb/common/util.c
@@ -2311,6 +2311,14 @@ int dsdb_load_partition_usn(struct ldb_context *ldb, struct ldb_dn *dn, uint64_t
ret = ldb_wait(req->handle, LDB_WAIT_ALL);
}
+ if (ret == LDB_ERR_NO_SUCH_OBJECT) {
+ /* it hasn't been created yet, which means
+ an implicit value of zero */
+ *uSN = 0;
+ talloc_free(tmp_ctx);
+ return LDB_SUCCESS;
+ }
+
if (ret != LDB_SUCCESS) {
talloc_free(tmp_ctx);
return ret;
diff --git a/source4/dsdb/repl/drepl_out_pull.c b/source4/dsdb/repl/drepl_out_pull.c
index b073d26..2793eec 100644
--- a/source4/dsdb/repl/drepl_out_pull.c
+++ b/source4/dsdb/repl/drepl_out_pull.c
@@ -109,7 +109,7 @@ static void dreplsrv_pending_op_callback(struct dreplsrv_out_operation *op)
if (W_ERROR_IS_OK(rf->result_last_attempt)) {
rf->consecutive_sync_failures = 0;
rf->last_success = now;
- DEBUG(2,("dreplsrv_op_pull_source(%s)\n",
+ DEBUG(3,("dreplsrv_op_pull_source(%s)\n",
win_errstr(rf->result_last_attempt)));
goto done;
}
--
Samba Shared Repository
More information about the samba-cvs
mailing list