mds: fix shadow

Coverity cid 29

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
This commit is contained in:
Sage Weil 2011-08-26 09:10:21 -07:00
parent 09b08c5d34
commit 85496ffa53

View File

@ -556,10 +556,10 @@ bool MDSMonitor::preprocess_command(MMonCommand *m)
if (!b.length()) {
r = -ENOENT;
} else {
MDSMap m(g_ceph_context);
m.decode(b);
m.encode(rdata);
ss << "got mdsmap epoch " << m.get_epoch();
MDSMap mm(g_ceph_context);
mm.decode(b);
mm.encode(rdata);
ss << "got mdsmap epoch " << mm.get_epoch();
}
} else {
mdsmap.encode(rdata);