ВС
Size: a a a
ВС
AK
ВС
Am
DS
ТС
ТС
ТС
Am
ТС
ТС
ТС

ТС
ТС
ТС
А🐎
1296 // NB not enabling suicide grace, because the mon takes care of killing us
1297 // (by blacklisting us) when we fail to send beacons, and it's simpler to
1298 // only have one way of dying.
1299 auto grace = g_conf().get_val<double>("mds_heartbeat_grace");
1300 g_ceph_context->get_heartbeat_map()->reset_timeout(hb, grace, 0);
1301 }А🐎
А🐎
1283 * Call this when you take mds_lock, or periodically if you're going to
1284 * hold the lock for a long time (e.g. iterating over clients/inodes)
1285 */
1286 void MDSRank::heartbeat_reset()
1287 {
1288 // Any thread might jump into mds_lock and call us immediately
1289 // after a call to suicide() completes, in which case MDSRank::hb
1290 // has been freed and we are a no-op.
1291 if (!hb) {
1292 ceph_assert(stopping);
1293 return;
1294 }
1295
1296 // NB not enabling suicide grace, because the mon takes care of killing us
1297 // (by blacklisting us) when we fail to send beacons, and it's simpler to
1298 // only have one way of dying.
1299 auto grace = g_conf().get_val<double>("mds_heartbeat_grace");
1300 g_ceph_context->get_heartbeat_map()->reset_timeout(hb, grace, 0);
1301 }ТС