Skip to content

Commit

Permalink
Remove auto set bytes_per_sync to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
rockeet committed Nov 1, 2023
1 parent 04225a2 commit d3c77b6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions db/db_impl/db_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1284,10 +1284,6 @@ Status DBImpl::SetDBOptions(
s = GetMutableDBOptionsFromStrings(mutable_db_options_, options_map,
&new_options);

if (new_options.bytes_per_sync == 0) {
new_options.bytes_per_sync = 1024 * 1024;
}

if (MutableDBOptionsAreEqual(mutable_db_options_, new_options)) {
ROCKS_LOG_INFO(immutable_db_options_.info_log,
"SetDBOptions(), input option value is not changed, "
Expand Down

0 comments on commit d3c77b6

Please sign in to comment.