You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by sl...@apache.org on 2015/01/14 18:17:37 UTC
[1/2] cassandra git commit: Fixup for #8558
Repository: cassandra
Updated Branches:
refs/heads/cassandra-2.1 064144bd4 -> 686b8104c
Fixup for #8558
Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/e16d76dc
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/e16d76dc
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/e16d76dc
Branch: refs/heads/cassandra-2.1
Commit: e16d76dc84022a37dc544183732bfe9e9fb3fd94
Parents: 92f7539
Author: Sylvain Lebresne <sy...@datastax.com>
Authored: Wed Jan 14 18:15:13 2015 +0100
Committer: Sylvain Lebresne <sy...@datastax.com>
Committed: Wed Jan 14 18:15:13 2015 +0100
----------------------------------------------------------------------
.../db/columniterator/IndexedSliceReader.java | 20 +++++++++++++-------
1 file changed, 13 insertions(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cassandra/blob/e16d76dc/src/java/org/apache/cassandra/db/columniterator/IndexedSliceReader.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/db/columniterator/IndexedSliceReader.java b/src/java/org/apache/cassandra/db/columniterator/IndexedSliceReader.java
index 4409484..2216725 100644
--- a/src/java/org/apache/cassandra/db/columniterator/IndexedSliceReader.java
+++ b/src/java/org/apache/cassandra/db/columniterator/IndexedSliceReader.java
@@ -337,7 +337,7 @@ class IndexedSliceReader extends AbstractIterator<OnDiskAtom> implements OnDiskA
boolean inSlice = false;
OnDiskAtom prefetchedCol;
- while ((prefetchedCol = prefetched.peek() ) != null)
+ while ((prefetchedCol = prefetched.peek()) != null)
{
// col is before slice, we update the slice
if (isColumnBeforeSliceStart(prefetchedCol))
@@ -351,12 +351,15 @@ class IndexedSliceReader extends AbstractIterator<OnDiskAtom> implements OnDiskA
continue;
}
- // Otherwise, we either move to the next slice or, if we have none (which can happen
- // because we unwind prefetched no matter what due to RT), we skip the cell
- if (hasMoreSlice())
- setNextSlice();
- else
- prefetched.poll();
+ // Otherwise, we either move to the next slice. If we have no more slice, then
+ // simply unwind prefetched entirely and add all RT.
+ if (!setNextSlice())
+ {
+ while ((prefetchedCol = prefetched.poll()) != null)
+ if (prefetchedCol instanceof RangeTombstone)
+ blockColumns.addLast(prefetchedCol);
+ break;
+ }
}
// col is within slice, all columns
@@ -373,8 +376,11 @@ class IndexedSliceReader extends AbstractIterator<OnDiskAtom> implements OnDiskA
prefetched.poll();
}
}
+
if (!blockColumns.isEmpty())
return true;
+ else if (!hasMoreSlice())
+ return false;
}
try
{
[2/2] cassandra git commit: Merge branch 'cassandra-2.0' into
cassandra-2.1
Posted by sl...@apache.org.
Merge branch 'cassandra-2.0' into cassandra-2.1
Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/686b8104
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/686b8104
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/686b8104
Branch: refs/heads/cassandra-2.1
Commit: 686b8104ca7469aee18b9ad4fa8b181e84dca427
Parents: 064144b e16d76d
Author: Sylvain Lebresne <sy...@datastax.com>
Authored: Wed Jan 14 18:15:36 2015 +0100
Committer: Sylvain Lebresne <sy...@datastax.com>
Committed: Wed Jan 14 18:15:36 2015 +0100
----------------------------------------------------------------------
.../db/columniterator/IndexedSliceReader.java | 20 +++++++++++++-------
1 file changed, 13 insertions(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cassandra/blob/686b8104/src/java/org/apache/cassandra/db/columniterator/IndexedSliceReader.java
----------------------------------------------------------------------