forked from facebookarchive/cassandra
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move from ExecutorService per ColumnFamily to ES per Memtable. This a…
…llows us to wait for the ES to quiesce completely before flushing, preventing the possibility of ConcurrentModificationException when a get scheduled before the switch executes concurrently with flush. It also provides a simpler mental model (only one thread touches memtable at a time, period) which is a valuable property. Finally, it is slightly more performant since it avoids hashing the CF name for each operation. Patch by jbellis; reviewed by Todd Lipcon for #9
- Loading branch information
Jonathan Ellis
committed
Apr 15, 2009
1 parent
98c808e
commit d40b9b3
Showing
2 changed files
with
50 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters