Skip to content

Commit

Permalink
reader_concurrency_semaphore: test constructor: don't ignore metrics …
Browse files Browse the repository at this point in the history
…param

The for_tests constructor has a metrics parameter defaulted to
register_metrics::no, but when delegating to the other constructor, a
hard-coded register_metrics::no is passed. This makes no difference
currently, because all callers use the default and the hard-coded value
corresponds to it. Let's fix it nevertheless to avoid any future
surprises.

Closes scylladb#20007
  • Loading branch information
denesb authored and avikivity committed Aug 4, 2024
1 parent 0660675 commit c341270
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reader_concurrency_semaphore.hh
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ public:
utils::updateable_value<uint32_t> cpu_concurrency = utils::updateable_value<uint32_t>(1),
register_metrics metrics = register_metrics::no)
: reader_concurrency_semaphore(utils::updateable_value(count), memory, std::move(name), max_queue_length, std::move(serialize_limit_multipler),
std::move(kill_limit_multipler), std::move(cpu_concurrency), register_metrics::no)
std::move(kill_limit_multipler), std::move(cpu_concurrency), metrics)
{}

virtual ~reader_concurrency_semaphore();
Expand Down

0 comments on commit c341270

Please sign in to comment.