summaryrefslogtreecommitdiffstats
path: root/ldap/servers/plugins
diff options
context:
space:
mode:
authorNathan Kinder <nkinder@redhat.com>2005-02-01 22:57:01 +0000
committerNathan Kinder <nkinder@redhat.com>2005-02-01 22:57:01 +0000
commitae05276447e919c49e2ce81e3435f949471685b8 (patch)
treecd0c135773d04794e562c7c21c489bb990c0ad36 /ldap/servers/plugins
parente36be6d8606000eaa3b73633d5632e30b47fedff (diff)
downloadds-ae05276447e919c49e2ce81e3435f949471685b8.tar.gz
ds-ae05276447e919c49e2ce81e3435f949471685b8.tar.xz
ds-ae05276447e919c49e2ce81e3435f949471685b8.zip
146804 - Added extra validity check for purge_csn - nkinder@redhat.com
Diffstat (limited to 'ldap/servers/plugins')
-rw-r--r--ldap/servers/plugins/replication/repl5_replica.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ldap/servers/plugins/replication/repl5_replica.c b/ldap/servers/plugins/replication/repl5_replica.c
index 08293b05..2c2fd14d 100644
--- a/ldap/servers/plugins/replication/repl5_replica.c
+++ b/ldap/servers/plugins/replication/repl5_replica.c
@@ -2812,7 +2812,8 @@ _replica_get_purge_csn_nolock(const Replica *r)
purge_csn = csn_dup (csns[i-1]);
/* set purge_csn to the most recent maxcsn - purge_delay */
- csn_set_time(purge_csn, csn_get_time(purge_csn) - r->repl_purge_delay);
+ if ((csn_get_time(purge_csn) - r->repl_purge_delay) > 0)
+ csn_set_time(purge_csn, csn_get_time(purge_csn) - r->repl_purge_delay);
}
if (csns)