diff options
Diffstat (limited to 'src/main/java/com/amazon')
-rw-r--r-- | src/main/java/com/amazon/carbonado/repo/indexed/ManagedIndex.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/java/com/amazon/carbonado/repo/indexed/ManagedIndex.java b/src/main/java/com/amazon/carbonado/repo/indexed/ManagedIndex.java index 1da57aa..4e99a06 100644 --- a/src/main/java/com/amazon/carbonado/repo/indexed/ManagedIndex.java +++ b/src/main/java/com/amazon/carbonado/repo/indexed/ManagedIndex.java @@ -660,15 +660,16 @@ class ManagedIndex<S extends Storable> implements IndexEntryAccessor<S> { return true;
}
+ // FIXME: This code effectively does nothing and always returns false.
+
// If index entry already exists, then index might be corrupt.
try {
Storable freshEntry = mIndexEntryStorage.prepare();
mAccessor.copyFromMaster(freshEntry, userStorable);
indexEntry.copyVersionProperty(freshEntry);
if (freshEntry.equals(indexEntry)) {
- // Existing entry is exactly what we expect. Return false
- // exception if alternate key constraint, since this is
- // user error.
+ // Existing entry is exactly what we expect. Return false if
+ // alternate key constraint, since this is user error.
return !isUnique();
}
} catch (FetchException e) {
|