svn commit: samba r11873 - in
branches/SAMBA_4_0/source/wrepl_server: .
metze at samba.org
metze at samba.org
Wed Nov 23 09:38:45 GMT 2005
Author: metze
Date: 2005-11-23 09:38:44 +0000 (Wed, 23 Nov 2005)
New Revision: 11873
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=11873
Log:
add some interval vars to the service context
metze
Modified:
branches/SAMBA_4_0/source/wrepl_server/wrepl_server.c
branches/SAMBA_4_0/source/wrepl_server/wrepl_server.h
Changeset:
Modified: branches/SAMBA_4_0/source/wrepl_server/wrepl_server.c
===================================================================
--- branches/SAMBA_4_0/source/wrepl_server/wrepl_server.c 2005-11-23 07:33:09 UTC (rev 11872)
+++ branches/SAMBA_4_0/source/wrepl_server/wrepl_server.c 2005-11-23 09:38:44 UTC (rev 11873)
@@ -43,6 +43,18 @@
return NT_STATUS_INTERNAL_DB_ERROR;
}
+ /* the default renew interval is 6 days */
+ service->config.renew_interval = lp_parm_int(-1,"wreplsrv","renew_interval", 6*24*60*60);
+
+ /* the default tombstone (extinction) interval is 6 days */
+ service->config.tombstone_interval= lp_parm_int(-1,"wreplsrv","tombstone_interval", 6*24*60*60);
+
+ /* the default tombstone (extinction) timeout is 1 day */
+ service->config.tombstone_timeout = lp_parm_int(-1,"wreplsrv","tombstone_timeout", 1*24*60*60);
+
+ /* the default verify interval is 24 days */
+ service->config.verify_interval = lp_parm_int(-1,"wreplsrv","verify_interval", 24*24*60*60);
+
return NT_STATUS_OK;
}
Modified: branches/SAMBA_4_0/source/wrepl_server/wrepl_server.h
===================================================================
--- branches/SAMBA_4_0/source/wrepl_server/wrepl_server.h 2005-11-23 07:33:09 UTC (rev 11872)
+++ branches/SAMBA_4_0/source/wrepl_server/wrepl_server.h 2005-11-23 09:38:44 UTC (rev 11873)
@@ -223,6 +223,34 @@
/* the winsdb handle */
struct ldb_context *wins_db;
+ /* some configuration */
+ struct {
+ /*
+ * the interval (in secs) till an active record will be marked as RELEASED
+ */
+ uint32_t renew_interval;
+
+ /*
+ * the interval (in secs) a record remains in RELEASED state,
+ * before it will be marked as TOMBSTONE
+ * (also known as extinction interval)
+ */
+ uint32_t tombstone_interval;
+
+ /*
+ * the interval (in secs) a record remains in TOMBSTONE state,
+ * before it will be removed from the database.
+ * (also known as extinction timeout)
+ */
+ uint32_t tombstone_timeout;
+
+ /*
+ * the interval (in secs) till a replica record will be verified
+ * with the owning wins server
+ */
+ uint32_t verify_interval;
+ } config;
+
/* all incoming connections */
struct wreplsrv_in_connection *in_connections;
More information about the samba-cvs
mailing list