fix race condition in ResponseVerbHandler. patch by jbellis; reviewed by eevans for CASSANDRA-478

git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/branches/cassandra-0.4@824458 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jonathan Ellis 2009-10-12 19:05:40 +00:00
parent 903bfd2668
commit 4b6b4cb6af
2 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@
* Add SnapshotBeforeCompaction configuration option (CASSANDRA-426)
* Fix compaction abort under insufficient disk space (CASSANDRA-473)
* Fix reading subcolumn slice from tombstoned CF (CASSANDRA-484)
* Fix race condition in RVH causing occasional NPE (CASSANDRA-478)
0.4.0

View File

@ -48,7 +48,7 @@ class ConsistencyManager implements Runnable
{
List<Message> responses_ = new ArrayList<Message>();
public void response(Message msg)
public synchronized void response(Message msg)
{
responses_.add(msg);
if ( responses_.size() == ConsistencyManager.this.replicas_.size() )