From 3fad738c13c12f0be3cf4e453b559427e7f420d9 Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Fri, 9 May 2008 03:36:30 +0000 Subject: Clustered index selection fixes. --- .../java/com/amazon/carbonado/repo/indexed/IndexedStorage.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/main/java/com/amazon/carbonado/repo/indexed') 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 implements Storage, StorageAccess { 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 implements Storage, StorageAccess // 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 -- cgit v1.2.3