From 98f955ed668cf8cecc45ae68bf87551235597522 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 19 Dec 2017 12:29:55 +0800 Subject: [PATCH] mds: add "client." before cap->get_client() unify the log and make it easy to search Signed-off-by: dongdong tao --- src/mds/Locker.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mds/Locker.cc b/src/mds/Locker.cc index 1a82d0e8d6f..0e333efd086 100644 --- a/src/mds/Locker.cc +++ b/src/mds/Locker.cc @@ -3643,7 +3643,7 @@ void Locker::caps_tick() Capability *cap = *p; utime_t age = now - cap->get_last_revoke_stamp(); - dout(20) << __func__ << " age = " << age << cap->get_client() << "." << cap->get_inode()->ino() << dendl; + dout(20) << __func__ << " age = " << age << " client." << cap->get_client() << "." << cap->get_inode()->ino() << dendl; if (age <= mds->mdsmap->get_session_timeout()) { dout(20) << __func__ << " age below timeout " << mds->mdsmap->get_session_timeout() << dendl; break; @@ -3665,7 +3665,7 @@ void Locker::caps_tick() mds->clog->warn() << ss.str(); dout(20) << __func__ << " " << ss.str() << dendl; } else { - dout(20) << __func__ << " silencing log message (backoff) for " << cap->get_client() << "." << cap->get_inode()->ino() << dendl; + dout(20) << __func__ << " silencing log message (backoff) for " << "client." << cap->get_client() << "." << cap->get_inode()->ino() << dendl; } } }