diff options
author | Nathan Kinder <nkinder@redhat.com> | 2005-02-01 22:57:01 +0000 |
---|---|---|
committer | Nathan Kinder <nkinder@redhat.com> | 2005-02-01 22:57:01 +0000 |
commit | ae05276447e919c49e2ce81e3435f949471685b8 (patch) | |
tree | cd0c135773d04794e562c7c21c489bb990c0ad36 | |
parent | e36be6d8606000eaa3b73633d5632e30b47fedff (diff) | |
download | ds-ae05276447e919c49e2ce81e3435f949471685b8.tar.gz ds-ae05276447e919c49e2ce81e3435f949471685b8.tar.xz ds-ae05276447e919c49e2ce81e3435f949471685b8.zip |
146804 - Added extra validity check for purge_csn - nkinder@redhat.com
-rw-r--r-- | ldap/servers/plugins/replication/repl5_replica.c | 3 |
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) |