cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject [1/4] git commit: assert renew memtable is only used when durable writes = false
Date Tue, 12 Aug 2014 14:27:52 GMT
Repository: cassandra
Updated Branches:
  refs/heads/trunk 7ce224284 -> 54914bf74


assert renew memtable is only used when durable writes = false


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/6caf4265
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/6caf4265
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/6caf4265

Branch: refs/heads/trunk
Commit: 6caf4265a41f61e9fbb9b11428702ead8ddb6c69
Parents: 9be6576
Author: Jake Luciani <jake@apache.org>
Authored: Tue Aug 12 10:24:27 2014 -0400
Committer: Jake Luciani <jake@apache.org>
Committed: Tue Aug 12 10:24:27 2014 -0400

----------------------------------------------------------------------
 src/java/org/apache/cassandra/db/DataTracker.java | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/6caf4265/src/java/org/apache/cassandra/db/DataTracker.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/db/DataTracker.java b/src/java/org/apache/cassandra/db/DataTracker.java
index a9eef98..088255e 100644
--- a/src/java/org/apache/cassandra/db/DataTracker.java
+++ b/src/java/org/apache/cassandra/db/DataTracker.java
@@ -130,6 +130,8 @@ public class DataTracker
      */
     public void renewMemtable()
     {
+        assert !cfstore.keyspace.metadata.durableWrites;
+
         Memtable newMemtable = new Memtable(cfstore, view.get().memtable);
         View currentView, newView;
         do


Mime
View raw message