Have isIndexBuilt expunge all tombstones
Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/c1f125b9 Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/c1f125b9 Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/c1f125b9 Branch: refs/heads/trunk Commit: c1f125b9b61a1aafb65c0466a43ceddbf9e8e9f9 Parents: 1e75013 Author: Sylvain Lebresne <sylv...@datastax.com> Authored: Thu Jan 12 09:11:25 2012 +0100 Committer: Sylvain Lebresne <sylv...@datastax.com> Committed: Thu Jan 12 09:11:25 2012 +0100 ---------------------------------------------------------------------- src/java/org/apache/cassandra/db/SystemTable.java | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cassandra/blob/c1f125b9/src/java/org/apache/cassandra/db/SystemTable.java ---------------------------------------------------------------------- diff --git a/src/java/org/apache/cassandra/db/SystemTable.java b/src/java/org/apache/cassandra/db/SystemTable.java index 19e9f15..8f1adfc 100644 --- a/src/java/org/apache/cassandra/db/SystemTable.java +++ b/src/java/org/apache/cassandra/db/SystemTable.java @@ -382,7 +382,7 @@ public class SystemTable QueryFilter filter = QueryFilter.getNamesFilter(decorate(ByteBufferUtil.bytes(table)), new QueryPath(INDEX_CF), ByteBufferUtil.bytes(indexName)); - return cfs.getColumnFamily(filter) != null; + return ColumnFamilyStore.removeDeleted(cfs.getColumnFamily(filter), Integer.MAX_VALUE) != null; } public static void setIndexBuilt(String table, String indexName)