]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
missing parens
authorSage Weil <sage@newdream.net>
Wed, 23 Jul 2008 16:16:13 +0000 (09:16 -0700)
committerSage Weil <sage@newdream.net>
Wed, 23 Jul 2008 16:46:36 +0000 (09:46 -0700)
src/ebofs/Ebofs.h
src/ebofs/Onode.h
src/mds/Server.cc
src/osdc/Objecter.cc

index 945487ece4884dea6639cbff94132bff980e14b2..456c2574ff6f21bab5229d096d128b5dea5cb753 100644 (file)
  */
 
 
-#include <map>
-using namespace std;
-
-#include <ext/hash_map>
-using namespace __gnu_cxx;
-
 #include "include/Context.h"
 #include "include/buffer.h"
 #include "include/hash.h"
index bd48a0e966b5e1d9455159b1dd9cc62eace82d77..ffb9480720a03817ffd83f3bf0db82b73b6e56a2 100644 (file)
@@ -355,7 +355,7 @@ public:
 
     map<block_t,ExtentCsum>::iterator p = extent_map.lower_bound(len);
     if (p != extent_map.begin() &&
-        (p == extent_map.end() || p->first > len && p->first)) {
+        (p == extent_map.end() ||( p->first > len && p->first))) {
       p--;
       ExtentCsum &o = p->second;
       if (o.ex.length > len - p->first) {
@@ -422,7 +422,7 @@ public:
     }
 
     if (p != extent_map.begin() &&
-        (p == extent_map.end() || p->first > start && p->first)) {
+        (p == extent_map.end() || (p->first > start && p->first))) {
       p--;
       if (p->second.ex.length > start - p->first) {
         extent_t ex;
index 5d2faf39793877a3ee3226346cc618c36000cbde..e3319b638a8487508ea3d0585834e0518066b66a 100644 (file)
@@ -448,7 +448,7 @@ void Server::process_reconnected_caps()
       }
     } else {
       // note that client should perform stale/reap cleanup during reconnect.
-      assert(issued & (CEPH_CAP_WR|CEPH_CAP_WRBUFFER) == 0);   // ????
+      assert((issued & (CEPH_CAP_WR|CEPH_CAP_WRBUFFER)) == 0);   // ????
       if (in->filelock.is_xlocked())
        in->filelock.set_state(LOCK_LOCK);
       else
index a432677acc0533f7aeb39997ecc4048306e6db4e..acba49f2d3734ba0750bf6b90476a4c7293c5658 100644 (file)
@@ -414,7 +414,7 @@ void Objecter::handle_osd_stat_reply(MOSDOpReply *m)
   
   // success?
   if (m->get_result() == -EINCLOCKED &&
-      st->flags & CEPH_OSD_OP_INCLOCK_FAIL == 0) {
+      (st->flags & CEPH_OSD_OP_INCLOCK_FAIL) == 0) {
     dout(7) << " got -EINCLOCKED, resubmitting" << dendl;
     stat_submit(st);
     delete m;