From: Sage Weil Date: Wed, 13 Mar 2013 20:24:37 +0000 (-0700) Subject: client: remove unused MetaSession::was_stale X-Git-Tag: v0.60~81^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1ab8ff9b66eafe20362b0c52ce9740821ea2ba2c;p=ceph.git client: remove unused MetaSession::was_stale Signed-off-by: Sage Weil --- diff --git a/src/client/Inode.cc b/src/client/Inode.cc index d152f186b53b..1a9962453a8a 100644 --- a/src/client/Inode.cc +++ b/src/client/Inode.cc @@ -150,8 +150,6 @@ bool Inode::cap_is_valid(Cap* cap) && (ceph_clock_now(cct) < cap->session->cap_ttl)) { return true; } - //if we make it here, the capabilities aren't up-to-date - cap->session->was_stale = true; return true; } diff --git a/src/client/MetaSession.cc b/src/client/MetaSession.cc index 435b67bd56c5..6c1685217d2b 100644 --- a/src/client/MetaSession.cc +++ b/src/client/MetaSession.cc @@ -30,7 +30,6 @@ void MetaSession::dump(Formatter *f) const f->dump_unsigned("cap_renew_seq", cap_renew_seq); f->dump_int("num_caps", num_caps); f->dump_string("state", get_state_name()); - f->dump_int("was_stale", (int)was_stale); } MetaSession::~MetaSession() diff --git a/src/client/MetaSession.h b/src/client/MetaSession.h index ab015a17bc43..0cff7586c36d 100644 --- a/src/client/MetaSession.h +++ b/src/client/MetaSession.h @@ -26,7 +26,6 @@ struct MetaSession { uint64_t cap_renew_seq; int num_caps; entity_inst_t inst; - bool was_stale; enum { STATE_NEW, @@ -49,7 +48,6 @@ struct MetaSession { MetaSession() : mds_num(-1), con(NULL), seq(0), cap_gen(0), cap_renew_seq(0), num_caps(0), - was_stale(false), state(STATE_NEW), release(NULL) {}