mirror of https://github.com/apache/cassandra
Fix snapshots in use get deleted during snapshot repair
patch by yukim; reviewed by jbellis for CASSANDRA-6011
This commit is contained in:
parent
2ce932761a
commit
806a45225b
|
|
@ -17,6 +17,7 @@
|
||||||
* Support null in CQL3 functions (CASSANDRA-5910)
|
* Support null in CQL3 functions (CASSANDRA-5910)
|
||||||
* Replace the deprecated MapMaker with CacheLoader (CASSANDRA-6007)
|
* Replace the deprecated MapMaker with CacheLoader (CASSANDRA-6007)
|
||||||
* Add SSTableDeletingNotification to DataTracker (CASSANDRA-6010)
|
* Add SSTableDeletingNotification to DataTracker (CASSANDRA-6010)
|
||||||
|
* Fix snapshots in use get deleted during snapshot repair (CASSANDRA-6011)
|
||||||
|
|
||||||
|
|
||||||
1.2.9
|
1.2.9
|
||||||
|
|
|
||||||
|
|
@ -770,8 +770,8 @@ public class CompactionManager implements CompactionManagerMBean
|
||||||
{
|
{
|
||||||
SSTableReader.releaseReferences(sstables);
|
SSTableReader.releaseReferences(sstables);
|
||||||
iter.close();
|
iter.close();
|
||||||
if (cfs.table.snapshotExists(validator.request.sessionid))
|
if (cfs.snapshotExists(validator.request.sessionid))
|
||||||
cfs.table.clearSnapshot(validator.request.sessionid);
|
cfs.clearSnapshot(validator.request.sessionid);
|
||||||
|
|
||||||
metrics.finishCompaction(ci);
|
metrics.finishCompaction(ci);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue