summaryrefslogtreecommitdiff
path: root/src/main/java/com/amazon/carbonado/repo/indexed
diff options
context:
space:
mode:
authorBrian S. O'Neill <bronee@gmail.com>2008-05-09 03:36:30 +0000
committerBrian S. O'Neill <bronee@gmail.com>2008-05-09 03:36:30 +0000
commit3fad738c13c12f0be3cf4e453b559427e7f420d9 (patch)
tree6ac2f4befe3a1bfc2228e28ab9071e0732a11b0d /src/main/java/com/amazon/carbonado/repo/indexed
parent57023295c1af81b4e4fd3dfd2d5969263179f54c (diff)
Clustered index selection fixes.
Diffstat (limited to 'src/main/java/com/amazon/carbonado/repo/indexed')
-rw-r--r--src/main/java/com/amazon/carbonado/repo/indexed/IndexedStorage.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main/java/com/amazon/carbonado/repo/indexed/IndexedStorage.java b/src/main/java/com/amazon/carbonado/repo/indexed/IndexedStorage.java
index 6409da7..9ff204f 100644
--- a/src/main/java/com/amazon/carbonado/repo/indexed/IndexedStorage.java
+++ b/src/main/java/com/amazon/carbonado/repo/indexed/IndexedStorage.java
@@ -99,6 +99,9 @@ class IndexedStorage<S extends Storable> implements Storage<S>, StorageAccess<S>
{
desiredIndexSet = IndexAnalysis.gatherDesiredIndexes(info);
desiredIndexSet.reduce(Direction.ASCENDING);
+ if (mRepository.isAllClustered()) {
+ desiredIndexSet.markClustered(true);
+ }
}
// The set of indexes that are populated and available for use. This is
@@ -225,10 +228,6 @@ class IndexedStorage<S extends Storable> implements Storage<S>, StorageAccess<S>
// Add the indexes we get for free.
queryableIndexSet.addAll(freeIndexSet);
-
- if (mRepository.isAllClustered()) {
- queryableIndexSet.markClustered(true);
- }
}
// The set of indexes that should be kept up-to-date. If index repair