File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -6,15 +6,15 @@ namespace ceph::perf_counters {
66void PerfCountersCache::check_key (const std::string &key) {
77 [[maybe_unused]] std::string_view key_name = ceph::perf_counters::key_name (key);
88 // don't accept an empty key name
9- assert (key_name != " " );
9+ ceph_assert (key_name != " " );
1010
1111 // if there are no labels, key name is not valid
1212 auto key_labels = ceph::perf_counters::key_labels (key);
13- assert (key_labels.begin () != key_labels.end ());
13+ ceph_assert (key_labels.begin () != key_labels.end ());
1414
1515 // don't accept keys where any labels in the key have an empty key name
1616 for ([[maybe_unused]] auto key_label : key_labels) {
17- assert (key_label.first != " " );
17+ ceph_assert (key_label.first != " " );
1818 }
1919}
2020
@@ -24,7 +24,7 @@ std::shared_ptr<PerfCounters> PerfCountersCache::add(const std::string &key) {
2424 auto [ref, key_existed] = cache.get_or_create (key);
2525 if (!key_existed) {
2626 ref->counters = create_counters (key, cct);
27- assert (ref->counters );
27+ ceph_assert (ref->counters );
2828 ref->cct = cct;
2929 }
3030 return ref->counters ;
You can’t perform that action at this time.
0 commit comments