summaryrefslogtreecommitdiff
path: root/source4/wrepl_server/wrepl_server.h
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-12-14 19:19:43 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:47:23 -0500
commit1d91ad0f73c8dc6c8a06c9bc2633516ac8b32e77 (patch)
tree487a30523c2904365dc6ea5d43647468690ee23e /source4/wrepl_server/wrepl_server.h
parentb1e50046657fcb8877b9199919f252f99ea701a0 (diff)
downloadsamba-1d91ad0f73c8dc6c8a06c9bc2633516ac8b32e77.tar.gz
samba-1d91ad0f73c8dc6c8a06c9bc2633516ac8b32e77.tar.bz2
samba-1d91ad0f73c8dc6c8a06c9bc2633516ac8b32e77.zip
r12242: - make the push notifications triggered by the change count
- for now we fake the change count to '1', so we'll still have periodicly triggered push notifies, the interval is the 'wreplsrv:periodic_interval=60' - add the 'pushUseInform' attribute to the wreplPartner objectClass to configure if we'll use WREPL_REPL_INFORM notifies metze (This used to be commit fa1a5660bb2ef7fabd72ad9b993dd91d59ac409e)
Diffstat (limited to 'source4/wrepl_server/wrepl_server.h')
-rw-r--r--source4/wrepl_server/wrepl_server.h19
1 files changed, 15 insertions, 4 deletions
diff --git a/source4/wrepl_server/wrepl_server.h b/source4/wrepl_server/wrepl_server.h
index 0e0ed35e94..e781d85ab8 100644
--- a/source4/wrepl_server/wrepl_server.h
+++ b/source4/wrepl_server/wrepl_server.h
@@ -169,9 +169,18 @@ struct wreplsrv_partner {
/* change count till push notification */
uint32_t change_count;
+ /* we should use WREPL_REPL_INFORM* messages to this partner */
+ BOOL use_inform;
+
+ /* the error count till the last success */
+ uint32_t error_count;
+
/* the status of the last push cycle */
NTSTATUS last_status;
+ /* the timestamp of the last run */
+ struct timeval last_run;
+
/* the outgoing connection to the partner */
struct wreplsrv_out_connection *wreplconn;
@@ -180,9 +189,6 @@ struct wreplsrv_partner {
/* the pull cycle io params */
struct wreplsrv_push_notify_io *notify_io;
-
- /* the current timed_event to the next push notify */
- struct timed_event *te;
} push;
};
@@ -252,7 +258,12 @@ struct wreplsrv_service {
/* some stuff for periodic processing */
struct {
/*
- * the timestamp for the current or next event,
+ * the timestamp for the current event,
+ */
+ struct timeval current_event;
+
+ /*
+ * the timestamp for the next event,
* this is the timstamp passed to event_add_timed()
*/
struct timeval next_event;