summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@sernet.de>2008-03-25 16:44:46 +0100
committerStefan Metzmacher <metze@samba.org>2009-01-19 07:05:51 +0100
commit81a2a43a5a3c13d08ed458d861d47f63a15ceac9 (patch)
tree6565c153beb6c7ad9df8cf1e69b56630c376c5a3 /source4
parentbbe4785f342d6513fd001fdde94a945b2f2b654a (diff)
downloadsamba-81a2a43a5a3c13d08ed458d861d47f63a15ceac9.tar.gz
samba-81a2a43a5a3c13d08ed458d861d47f63a15ceac9.tar.bz2
samba-81a2a43a5a3c13d08ed458d861d47f63a15ceac9.zip
wrepl_scavenging: add a comment to make the is_static case more clear
metze (from samba4wins tree 67fa7dc4fe36b143d36df1309840328a14683e31)
Diffstat (limited to 'source4')
-rw-r--r--source4/wrepl_server/wrepl_scavenging.c18
1 files changed, 13 insertions, 5 deletions
diff --git a/source4/wrepl_server/wrepl_scavenging.c b/source4/wrepl_server/wrepl_scavenging.c
index d4301e41c7..a1edd9e8ce 100644
--- a/source4/wrepl_server/wrepl_scavenging.c
+++ b/source4/wrepl_server/wrepl_scavenging.c
@@ -99,12 +99,20 @@ static NTSTATUS wreplsrv_scavenging_owned_records(struct wreplsrv_service *servi
switch (rec->state) {
case WREPL_STATE_ACTIVE:
old_state = "active";
- new_state = "active";
- if (!rec->is_static) {
- new_state = "released";
- rec->state = WREPL_STATE_RELEASED;
- rec->expire_time= service->config.tombstone_interval + now;
+ if (rec->is_static) {
+ /*
+ *we store it again, so that it won't appear
+ * in the scavenging the next time
+ */
+ old_state = "active(static)";
+ new_state = "active(static)";
+ modify_flags = 0;
+ modify_record = true;
+ break;
}
+ new_state = "released";
+ rec->state = WREPL_STATE_RELEASED;
+ rec->expire_time= service->config.tombstone_interval + now;
modify_flags = 0;
modify_record = true;
break;