From: Sage Weil Date: Wed, 23 Jul 2008 16:16:13 +0000 (-0700) Subject: missing parens X-Git-Tag: v0.4~425 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b65aa9a25dd218d283d9758338c112638d920a18;p=ceph.git missing parens --- diff --git a/src/ebofs/Ebofs.h b/src/ebofs/Ebofs.h index a387b65428e..41f8244d333 100644 --- a/src/ebofs/Ebofs.h +++ b/src/ebofs/Ebofs.h @@ -13,12 +13,6 @@ */ -#include -using namespace std; - -#include -using namespace __gnu_cxx; - #include "include/Context.h" #include "include/buffer.h" #include "include/hash.h" diff --git a/src/ebofs/Onode.h b/src/ebofs/Onode.h index bd48a0e966b..ffb9480720a 100644 --- a/src/ebofs/Onode.h +++ b/src/ebofs/Onode.h @@ -355,7 +355,7 @@ public: map::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; diff --git a/src/mds/Server.cc b/src/mds/Server.cc index 5c8c487e290..063e564bf0c 100644 --- a/src/mds/Server.cc +++ b/src/mds/Server.cc @@ -451,7 +451,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 diff --git a/src/osdc/Objecter.cc b/src/osdc/Objecter.cc index e8b06e62f07..b08ad7187e4 100644 --- a/src/osdc/Objecter.cc +++ b/src/osdc/Objecter.cc @@ -415,7 +415,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;