| | |
| | | * |
| | | * |
| | | * Copyright 2006-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2013 ForgeRock AS |
| | | * Portions Copyright 2011-2014 ForgeRock AS |
| | | */ |
| | | package org.opends.server.replication.server; |
| | | |
| | |
| | | * @return The time after which changes must be deleted from the |
| | | * persistent storage (in milliseconds). |
| | | */ |
| | | public long getTrimAge() |
| | | public long getPurgeDelay() |
| | | { |
| | | return this.config.getReplicationPurgeDelay() * 1000; |
| | | } |
| | |
| | | final long newPurgeDelay = config.getReplicationPurgeDelay(); |
| | | if (newPurgeDelay != oldConfig.getReplicationPurgeDelay()) |
| | | { |
| | | this.changelogDB.setPurgeDelay(getTrimAge()); |
| | | this.changelogDB.setPurgeDelay(getPurgeDelay()); |
| | | } |
| | | final boolean computeCN = config.isComputeChangeNumber(); |
| | | if (computeCN != oldConfig.isComputeChangeNumber()) |