]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: fix shadow
authorSage Weil <sage.weil@dreamhost.com>
Sun, 21 Aug 2011 21:22:07 +0000 (14:22 -0700)
committerSage Weil <sage.weil@dreamhost.com>
Sun, 21 Aug 2011 21:22:07 +0000 (14:22 -0700)
Coverity cid 26

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/mds/MDS.cc

index 519a66af03ec94c7e580b0c25c3343f62cec3976..f2f4cdaa339ab16fa1cd5bb02a87bdfa17ccd320 100644 (file)
@@ -1839,14 +1839,14 @@ bool MDS::_dispatch(Message *m)
     if (is_laggy())
       return true;
 
-    Message *m = waiting_for_nolaggy.front();
+    Message *old = waiting_for_nolaggy.front();
     waiting_for_nolaggy.pop_front();
 
-    if (is_stale_message(m)) {
-      m->put();
+    if (is_stale_message(old)) {
+      old->put();
     } else {
-      dout(7) << " processing laggy deferred " << *m << dendl;
-      handle_deferrable_message(m);
+      dout(7) << " processing laggy deferred " << *old << dendl;
+      handle_deferrable_message(old);
     }
 
     // give other threads (beacon!) a chance