Fix snapshots in use get deleted during snapshot repair

patch by yukim; reviewed by jbellis for CASSANDRA-6011
This commit is contained in:
Yuki Morishita 2013-09-13 11:37:22 -05:00
parent 2ce932761a
commit 806a45225b
2 changed files with 3 additions and 2 deletions

View File

@ -17,6 +17,7 @@
* Support null in CQL3 functions (CASSANDRA-5910)
* Replace the deprecated MapMaker with CacheLoader (CASSANDRA-6007)
* Add SSTableDeletingNotification to DataTracker (CASSANDRA-6010)
* Fix snapshots in use get deleted during snapshot repair (CASSANDRA-6011)
1.2.9

View File

@ -770,8 +770,8 @@ public class CompactionManager implements CompactionManagerMBean
{
SSTableReader.releaseReferences(sstables);
iter.close();
if (cfs.table.snapshotExists(validator.request.sessionid))
cfs.table.clearSnapshot(validator.request.sessionid);
if (cfs.snapshotExists(validator.request.sessionid))
cfs.clearSnapshot(validator.request.sessionid);
metrics.finishCompaction(ci);
}