]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: add missing parantheses
authorYehuda Sadeh <yehuda@inktank.com>
Thu, 27 Sep 2012 22:30:16 +0000 (15:30 -0700)
committerYehuda Sadeh <yehuda@inktank.com>
Mon, 8 Oct 2012 22:14:57 +0000 (15:14 -0700)
.. around logic operations at process_intent_log().
Another coverity fix.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
src/rgw/rgw_rados.cc

index a0e7ffc3d787f6088277472cca865b6ce894c1dc..db01184f5bb6563bcd23e66b74311342d3b9cf9b 100644 (file)
@@ -3382,7 +3382,7 @@ int RGWRados::process_intent_log(rgw_bucket& bucket, string& oid,
     }
     switch (entry.intent) {
     case DEL_OBJ:
-      if (!flags & I_DEL_OBJ) {
+      if (!(flags & I_DEL_OBJ)) {
         complete = false;
         break;
       }
@@ -3393,7 +3393,7 @@ int RGWRados::process_intent_log(rgw_bucket& bucket, string& oid,
       }
       break;
     case DEL_DIR:
-      if (!flags & I_DEL_DIR) {
+      if (!(flags & I_DEL_DIR)) {
         complete = false;
         break;
       } else {