From ccb7ca2b0d7bde5a2577b373eb289887bb25c58a Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Wed, 23 Jul 2008 20:04:09 +0000 Subject: Repair unmatched replica without rolling back. --- .../java/com/amazon/carbonado/repo/replicated/ReplicationTrigger.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java') diff --git a/src/main/java/com/amazon/carbonado/repo/replicated/ReplicationTrigger.java b/src/main/java/com/amazon/carbonado/repo/replicated/ReplicationTrigger.java index 8cf7007..0b9770f 100644 --- a/src/main/java/com/amazon/carbonado/repo/replicated/ReplicationTrigger.java +++ b/src/main/java/com/amazon/carbonado/repo/replicated/ReplicationTrigger.java @@ -152,7 +152,7 @@ class ReplicationTrigger extends Trigger { if (!master.tryUpdate()) { // Master record does not exist. To ensure consistency, // delete record from replica. - tryDeleteReplica(replica); + repair(replica); throw abortTry(); } } else { @@ -161,7 +161,7 @@ class ReplicationTrigger extends Trigger { } catch (PersistNoneException e) { // Master record does not exist. To ensure consistency, // delete record from replica. - tryDeleteReplica(replica); + repair(replica); throw e; } } -- cgit v1.2.3