mirror of https://github.com/apache/cassandra
enable segement creation before recovering commitlogs
patch by Jaydeepkumar Chovatia, reviewed by jasobrown for CASSANDRA-13587
This commit is contained in:
parent
d98130985e
commit
d03c046acb
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue