mirror of https://github.com/apache/cassandra
Fix the problem in CASSANDRA-9 JIRA
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@758143 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
82f5b6072a
commit
af47dc8476
|
|
@ -261,8 +261,8 @@ public class Memtable implements MemtableMBean, Comparable<Memtable>
|
||||||
isFrozen_ = true;
|
isFrozen_ = true;
|
||||||
/* Submit this Memtable to be flushed. */
|
/* Submit this Memtable to be flushed. */
|
||||||
Runnable flusher = new Flusher(cLogCtx);
|
Runnable flusher = new Flusher(cLogCtx);
|
||||||
apartments_.get(cfName_).submit(flusher);
|
apartments_.get(cfName_).submit(flusher);
|
||||||
// MemtableManager.instance().submit(cfStore.getColumnFamilyName(), this, cLogCtx);
|
/* switch the memtable */
|
||||||
cfStore.switchMemtable(key, columnFamily, cLogCtx);
|
cfStore.switchMemtable(key, columnFamily, cLogCtx);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
@ -463,9 +463,7 @@ public class Memtable implements MemtableMBean, Comparable<Memtable>
|
||||||
default:
|
default:
|
||||||
flushForRandomPartitioner(ssTable, cfStore, cLogCtx);
|
flushForRandomPartitioner(ssTable, cfStore, cLogCtx);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
columnFamilies_.clear();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void flushForRandomPartitioner(SSTable ssTable, ColumnFamilyStore cfStore, CommitLog.CommitLogContext cLogCtx) throws IOException
|
private void flushForRandomPartitioner(SSTable ssTable, ColumnFamilyStore cfStore, CommitLog.CommitLogContext cLogCtx) throws IOException
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue