From: Sage Weil Date: Mon, 19 Oct 2009 19:13:57 +0000 (-0700) Subject: mon: log each client mount X-Git-Tag: v0.17~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6668669604221bb09c940cd64921684a51f04220;p=ceph.git mon: log each client mount --- diff --git a/src/mon/ClientMonitor.cc b/src/mon/ClientMonitor.cc index f0ebba9bc6c..46b2dfeefe6 100644 --- a/src/mon/ClientMonitor.cc +++ b/src/mon/ClientMonitor.cc @@ -190,7 +190,6 @@ bool ClientMonitor::preprocess_mount(MClientMount *m) bool ClientMonitor::prepare_mount(MClientMount *m) { - stringstream ss; entity_addr_t addr = m->get_orig_source_addr(); assert(next_client <= client_map.next_client); @@ -203,8 +202,6 @@ bool ClientMonitor::prepare_mount(MClientMount *m) dout(10) << "mount: assigned client" << client << " to " << addr << dendl; paxos->wait_for_commit(new C_Mounted(this, client, (MClientMount*)m)); - ss << "client" << client << " " << addr; - mon->get_logclient()->log(LOG_INFO, ss); return true; } @@ -215,6 +212,10 @@ void ClientMonitor::_mounted(client_t client, MClientMount *m) to.name = entity_name_t::CLIENT(client.v); dout(10) << "_mounted client" << client << " at " << to << dendl; + + stringstream ss; + ss << "client" << client << " " << to.addr; + mon->get_logclient()->log(LOG_INFO, ss); // reply with client ticket MClientMountAck *ack = new MClientMountAck;