diff options
author | Stefan Metzmacher <metze@samba.org> | 2005-11-23 09:38:44 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:46:39 -0500 |
commit | 4725c3a83d0ba72a0a764710a9810e49ac18436d (patch) | |
tree | 5305a4118b7232286270cebb19741010a2e612fb /source4/wrepl_server | |
parent | e3e066fcb4d51611ff346ba4cff23aad659c2065 (diff) | |
download | samba-4725c3a83d0ba72a0a764710a9810e49ac18436d.tar.gz samba-4725c3a83d0ba72a0a764710a9810e49ac18436d.tar.bz2 samba-4725c3a83d0ba72a0a764710a9810e49ac18436d.zip |
r11873: add some interval vars to the service context
metze
(This used to be commit 1d80ba062ae8a0854e35eb8a3fdae56990b790b8)
Diffstat (limited to 'source4/wrepl_server')
-rw-r--r-- | source4/wrepl_server/wrepl_server.c | 12 | ||||
-rw-r--r-- | source4/wrepl_server/wrepl_server.h | 28 |
2 files changed, 40 insertions, 0 deletions
diff --git a/source4/wrepl_server/wrepl_server.c b/source4/wrepl_server/wrepl_server.c index 8249e6ac31..effd547260 100644 --- a/source4/wrepl_server/wrepl_server.c +++ b/source4/wrepl_server/wrepl_server.c @@ -43,6 +43,18 @@ static NTSTATUS wreplsrv_open_winsdb(struct wreplsrv_service *service) 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; } diff --git a/source4/wrepl_server/wrepl_server.h b/source4/wrepl_server/wrepl_server.h index d7d71b6175..7025bff496 100644 --- a/source4/wrepl_server/wrepl_server.h +++ b/source4/wrepl_server/wrepl_server.h @@ -223,6 +223,34 @@ struct wreplsrv_service { /* 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; |