Commit b4f441f 1 parent f276e0e commit b4f441f Copy full SHA for b4f441f
File tree 1 file changed +1
-1
lines changed
1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -3745,7 +3745,6 @@ Status DB::OpenWithColumnFamilies(
3745
3745
// Handles create_if_missing, error_if_exists
3746
3746
s = impl->Recover (column_families);
3747
3747
if (s.ok ()) {
3748
- lfile->SetPreallocationBlockSize (1.1 * max_write_buffer_size);
3749
3748
uint64_t new_log_number = impl->versions_ ->NewFileNumber ();
3750
3749
unique_ptr<WritableFile> lfile;
3751
3750
soptions.use_mmap_writes = false ;
@@ -3755,6 +3754,7 @@ Status DB::OpenWithColumnFamilies(
3755
3754
soptions
3756
3755
);
3757
3756
if (s.ok ()) {
3757
+ lfile->SetPreallocationBlockSize (1.1 * max_write_buffer_size);
3758
3758
VersionEdit edit;
3759
3759
impl->logfile_number_ = new_log_number;
3760
3760
impl->log_ .reset (new log ::Writer (std::move (lfile)));
You can’t perform that action at this time.
0 commit comments