From: John Spray Date: Wed, 18 May 2016 18:34:22 +0000 (+0100) Subject: mon: drop encoded buffer after decode X-Git-Tag: v11.0.1~60^2~75 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3f6676a8e5804c19348bb3a95a5947791b5f794b;p=ceph.git mon: drop encoded buffer after decode This bufferlist was being kept around as a class member but it didn't need to be. Signed-off-by: John Spray --- diff --git a/src/mon/MDSMonitor.cc b/src/mon/MDSMonitor.cc index faf28f30f65c..85563c5a44dc 100644 --- a/src/mon/MDSMonitor.cc +++ b/src/mon/MDSMonitor.cc @@ -142,6 +142,7 @@ void MDSMonitor::update_from_paxos(bool *need_bootstrap) assert(version > fsmap.epoch); // read and decode + bufferlist fsmap_bl; fsmap_bl.clear(); int err = get_version(version, fsmap_bl); assert(err == 0); diff --git a/src/mon/MDSMonitor.h b/src/mon/MDSMonitor.h index ddd0569c026e..ddad4db10d1c 100644 --- a/src/mon/MDSMonitor.h +++ b/src/mon/MDSMonitor.h @@ -40,8 +40,6 @@ class MDSMonitor : public PaxosService { public: // mds maps FSMap fsmap; // current - bufferlist fsmap_bl; // encoded - FSMap pending_fsmap; // current + pending updates // my helpers