From a6848189ff44e21b886a9c045bd753500f90f1d3 Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Tue, 18 Aug 2009 00:30:15 +0000 Subject: Throw exception if force checkpoint disabled. --- .../java/com/amazon/carbonado/repo/sleepycat/CheckpointCapability.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/amazon/carbonado/repo/sleepycat/CheckpointCapability.java b/src/main/java/com/amazon/carbonado/repo/sleepycat/CheckpointCapability.java index c261d8a..b52c706 100644 --- a/src/main/java/com/amazon/carbonado/repo/sleepycat/CheckpointCapability.java +++ b/src/main/java/com/amazon/carbonado/repo/sleepycat/CheckpointCapability.java @@ -18,6 +18,7 @@ package com.amazon.carbonado.repo.sleepycat; +import com.amazon.carbonado.PersistDeniedException; import com.amazon.carbonado.PersistException; import com.amazon.carbonado.capability.Capability; @@ -53,6 +54,8 @@ public interface CheckpointCapability extends Capability { * disabled. If a checkpoint is in progress, then this method will block * until it is finished, and then run another checkpoint. This method does * not return until the requested checkpoint has finished. + * + * @throws PersistDeniedException if disabled during a hot backup */ void forceCheckpoint() throws PersistException; } -- cgit v1.2.3