summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian S. O'Neill <bronee@gmail.com>2007-08-11 15:31:35 +0000
committerBrian S. O'Neill <bronee@gmail.com>2007-08-11 15:31:35 +0000
commit613111cb295aa0a16f12014af99e7e538b4b47ab (patch)
tree9d7ff24dd091d20a88ea930bce1e2c143aacc60f /src
parent57200426df368af9ce98f9d269cac7cdd15a6b93 (diff)
Fixed replication repair bug which threw an IllegalStateException for insert repair if only alternate keys were specified.
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/amazon/carbonado/repo/replicated/ReplicationTrigger.java4
1 files changed, 3 insertions, 1 deletions
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 7f743ac..7edec6b 100644
--- a/src/main/java/com/amazon/carbonado/repo/replicated/ReplicationTrigger.java
+++ b/src/main/java/com/amazon/carbonado/repo/replicated/ReplicationTrigger.java
@@ -303,7 +303,9 @@ class ReplicationTrigger<S extends Storable> extends Trigger<S> {
private void repair(S replica) throws PersistException {
replica = (S) replica.copy();
S master = mMasterStorage.prepare();
- replica.copyPrimaryKeyProperties(master);
+ // Must copy more than just primary key properties to master since
+ // replica object might only have alternate keys.
+ replica.copyAllProperties(master);
try {
if (replica.tryLoad()) {