subv_window_sec will be always set to default, if not set explicitly
Signed-off-by: Igor Golikov <igolikov@redhat.com>
msg->quota = pi->quota;
mds->send_message_client_counted(msg, cap->get_session());
}
-
for (const auto &it : in->get_replicas()) {
auto msg = make_message<MGatherCaps>();
msg->ino = in->ino();
});
subv_window_sec = g_conf().get_val<std::chrono::seconds>("subv_metrics_window_interval").count();
- if (!subv_window_sec) {
- dout(0) << "subv_metrics_window_interval is not set, setting to 300 seconds" << dendl;
- subv_window_sec = 300;
- }
-
return 0;
}
}
subv_window_sec = g_conf().get_val<std::chrono::seconds>("subv_metrics_window_interval").count();
- if (!subv_window_sec) {
- dout(0) << "subv_metrics_window_interval is not set, setting to 300 seconds" << dendl;
- subv_window_sec = 300;
- }
updater = std::thread([this]() {
ceph_pthread_setname("mds-metrics");