]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: fix warnings
authorSage Weil <sage.weil@dreamhost.com>
Sat, 12 Nov 2011 05:03:09 +0000 (21:03 -0800)
committerSage Weil <sage.weil@dreamhost.com>
Sat, 12 Nov 2011 05:04:56 +0000 (21:04 -0800)
osd/ReplicatedPG.cc: In member function 'virtual void ReplicatedPG::remove_watchers_and_notifies()':
osd/ReplicatedPG.cc:1167: warning: suggest a space before ';' or explicit braces around empty body in 'for' statement
osd/ReplicatedPG.cc:1176: warning: suggest a space before ';' or explicit braces around empty body in 'for' statement

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

index abd6d4239c2fc743acbd58d8f7635e4a1b054a20..614d5e9edf1095bae2c0cf73b9755ea630db147a 100644 (file)
@@ -1164,16 +1164,16 @@ void ReplicatedPG::remove_watchers_and_notifies()
     obc->ref++;
     for (map<entity_name_t, OSD::Session *>::iterator witer = obc->watchers.begin();
         witer != obc->watchers.end();
-        remove_watcher(obc, (witer++)->first));
+        remove_watcher(obc, (witer++)->first)) ;
     for (map<entity_name_t, Context *>::iterator iter = obc->unconnected_watchers.begin();
         iter != obc->unconnected_watchers.end();
-      ) {
+        ) {
       map<entity_name_t, Context *>::iterator i = iter++;
       unregister_unconnected_watcher(obc, i->first);
     }
     for (map<Watch::Notification *, bool>::iterator niter = obc->notifs.begin();
         niter != obc->notifs.end();
-        remove_notify(obc, (niter++)->first));
+        remove_notify(obc, (niter++)->first)) ;
     put_object_context(obc);
   }
   osd->watch_lock.Unlock();