Skip to content

Commit

Permalink
replica: do not derive the commitlog sync period for schema commitlog
Browse files Browse the repository at this point in the history
We don't want to apply the value of the commitlog_sync_period_in_ms
variable to schema commitlog. Schema commitlog runs in batch mode,
so it doesn't need this parameter.
  • Loading branch information
patjed41 committed Jul 19, 2023
1 parent b3be961 commit ee1c240
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion replica/database.cc
Expand Up @@ -952,7 +952,6 @@ void database::maybe_init_schema_commitlog() {
c.metrics_category_name = "schema-commitlog";
c.commitlog_total_space_in_mb = 10 << 20;
c.commitlog_segment_size_in_mb = _cfg.schema_commitlog_segment_size_in_mb();
c.commitlog_sync_period_in_ms = _cfg.commitlog_sync_period_in_ms();
c.mode = db::commitlog::sync_mode::BATCH;
c.extensions = &_cfg.extensions();
c.use_o_dsync = _cfg.commitlog_use_o_dsync();
Expand Down

0 comments on commit ee1c240

Please sign in to comment.