From: Joao Eduardo Luis Date: Wed, 20 Mar 2013 20:51:06 +0000 (+0000) Subject: mon: DataHealthService: log to derr instead if we're about to shutdown X-Git-Tag: v0.60~28^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=97fd7b610dc664bbcab8f06140dfcf4e1a8aa9aa;p=ceph.git mon: DataHealthService: log to derr instead if we're about to shutdown Otherwise the message would -- or could -- be lost. Signed-off-by: Joao Eduardo Luis --- diff --git a/src/mon/DataHealthService.cc b/src/mon/DataHealthService.cc index b8462ca72cd6..d465c39aed78 100644 --- a/src/mon/DataHealthService.cc +++ b/src/mon/DataHealthService.cc @@ -166,9 +166,8 @@ void DataHealthService::service_tick() DataStats &ours = stats[mon->monmap->get_inst(mon->name)]; if (ours.latest_avail_percent <= g_conf->mon_data_avail_crit) { - mon->clog.error() - << "reached critical levels of available space on data store" - << " -- shutdown!\n"; + derr << "reached critical levels of available space on data store" + << " -- shutdown!" << dendl; force_shutdown(); return; }