Skip to content

Commit 6374c96

Browse files
authored
PrepareAppend boolean logic originally written incorrectly (#60)
1 parent 70551d2 commit 6374c96

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

db/version_edit_handler.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -534,8 +534,8 @@ Status VersionEditHandler::MaybeCreateVersion(const VersionEdit& /*edit*/,
534534
// Install new version
535535
v->PrepareAppend(
536536
*cfd->GetLatestMutableCFOptions(),
537-
!(version_set_->db_options_->skip_stats_update_on_db_open ||
538-
kFilePreloadDisabled == cfd->ioptions()->file_preload));
537+
!(version_set_->db_options_->skip_stats_update_on_db_open) ||
538+
kFilePreloadDisabled == cfd->ioptions()->file_preload);
539539

540540
version_set_->AppendVersion(cfd, v);
541541
} else {
@@ -810,8 +810,8 @@ Status VersionEditHandlerPointInTime::MaybeCreateVersion(
810810
if (s.ok()) {
811811
version->PrepareAppend(
812812
*cfd->GetLatestMutableCFOptions(),
813-
!(version_set_->db_options_->skip_stats_update_on_db_open ||
814-
kFilePreloadDisabled == cfd->ioptions()->file_preload));
813+
!(version_set_->db_options_->skip_stats_update_on_db_open) ||
814+
kFilePreloadDisabled == cfd->ioptions()->file_preload);
815815
auto v_iter = versions_.find(cfd->GetID());
816816
if (v_iter != versions_.end()) {
817817
delete v_iter->second;

0 commit comments

Comments
 (0)