From 1ab8ff9b66eafe20362b0c52ce9740821ea2ba2c Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 13 Mar 2013 13:24:37 -0700 Subject: [PATCH] client: remove unused MetaSession::was_stale Signed-off-by: Sage Weil --- src/client/Inode.cc | 2 -- src/client/MetaSession.cc | 1 - src/client/MetaSession.h | 2 -- 3 files changed, 5 deletions(-) diff --git a/src/client/Inode.cc b/src/client/Inode.cc index d152f186b53..1a9962453a8 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 435b67bd56c..6c1685217d2 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 ab015a17bc4..0cff7586c36 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) {} -- 2.47.3