From: Yehuda Sadeh Date: Thu, 27 Sep 2012 22:30:16 +0000 (-0700) Subject: rgw: add missing parantheses X-Git-Tag: v0.54~83^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=58ad3bf3be7de180b00e4019c69e4dee832d586b;p=ceph.git rgw: add missing parantheses .. around logic operations at process_intent_log(). Another coverity fix. Signed-off-by: Yehuda Sadeh --- diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index a0e7ffc3d787..db01184f5bb6 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -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 {