isFrozen needs to be volatile

git-svn-id: https://svn.apache.org/repos/asf/cassandra/trunk@1087921 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jonathan Ellis 2011-04-01 22:25:19 +00:00
parent 11787dcef9
commit 264c7f01a3
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ public class Memtable implements Comparable<Memtable>, IFlushable
{
private static final Logger logger = LoggerFactory.getLogger(Memtable.class);
private boolean isFrozen;
private volatile boolean isFrozen;
private final AtomicLong currentThroughput = new AtomicLong(0);
private final AtomicLong currentOperations = new AtomicLong(0);