diff options
author | Brian S. O'Neill <bronee@gmail.com> | 2011-05-18 19:29:18 +0000 |
---|---|---|
committer | Brian S. O'Neill <bronee@gmail.com> | 2011-05-18 19:29:18 +0000 |
commit | d3f2ae092966f33584702a1dbb0c6f00335a156e (patch) | |
tree | 675e5d02367ef1d6fdd10bc333932c786149cd1c /src/main/java/com/amazon | |
parent | 9fffba665e4a785cfeaddd038c8c8a302f216a1c (diff) |
Add FIXME comment.
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) {
|