enable segement creation before recovering commitlogs

patch by Jaydeepkumar Chovatia, reviewed by jasobrown for CASSANDRA-13587
This commit is contained in:
Jaydeepkumar Chovatia 2017-06-09 16:08:32 -07:00 committed by Jason Brown
parent d98130985e
commit d03c046acb
2 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
3.0.15
* enable segement creation before recovering commitlogs (CASSANDRA-13587)
* Fix AssertionError in short read protection (CASSANDRA-13747)
* Don't skip corrupted sstables on startup (CASSANDRA-13620)
* Fix the merging of cells with different user type versions (CASSANDRA-13776)

View File

@ -150,6 +150,7 @@ public class CommitLog implements CommitLogMBean
File[] files = new File(DatabaseDescriptor.getCommitLogLocation()).listFiles(unmanagedFilesFilter);
int replayed = 0;
allocator.enableReserveSegmentCreation();
if (files.length == 0)
{
logger.info("No commitlog files found; skipping replay");
@ -165,7 +166,6 @@ public class CommitLog implements CommitLogMBean
allocator.recycleSegment(f);
}
allocator.enableReserveSegmentCreation();
return replayed;
}