Skip to content

Commit

Permalink
merge from 0.7
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/cassandra/branches/cassandra-0.8@1094810 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
jbellis committed Apr 18, 2011
1 parent d88fffd commit ca988ef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/java/org/apache/cassandra/service/AntiEntropyService.java
Expand Up @@ -286,6 +286,7 @@ public static class Validator implements Runnable
private transient long validated;
private transient MerkleTree.TreeRange range;
private transient MerkleTree.TreeRangeIterator ranges;
private transient DecoratedKey lastKey;

public final static MerkleTree.RowHash EMPTY_ROW = new MerkleTree.RowHash(null, new byte[0]);

Expand Down Expand Up @@ -361,6 +362,9 @@ public void prepare(ColumnFamilyStore cfs)
public void add(AbstractCompactedRow row)
{
assert request.range.contains(row.key.token) : row.key.token + " is not contained in " + request.range;
assert lastKey == null || lastKey.compareTo(row.key) < 0
: "row " + row.key + " received out of order wrt " + lastKey;
lastKey = row.key;

if (range == null)
range = ranges.next();
Expand Down

0 comments on commit ca988ef

Please sign in to comment.