From: Jie Wang Date: Fri, 13 Nov 2015 13:52:21 +0000 (+0800) Subject: osd: fix wrong use of right parenthesis X-Git-Tag: v10.0.1~66^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0533cf9d0c768325d657a79e0f089de2bb66b5eb;p=ceph.git osd: fix wrong use of right parenthesis Signed-off-by: Jie Wang Reviewed-by: Li Wang --- diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index 2a28f1b999b0..98bf1c60dadd 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -1732,8 +1732,8 @@ void ReplicatedPG::do_op(OpRequestRef& op) // CEPH_OSD_FLAG_LOCALIZE_READS set, we just return -EAGAIN. Otherwise, // we have to wait for the object. if (is_primary() || - (!(m->has_flag(CEPH_OSD_FLAG_BALANCE_READS) && - !(m->has_flag(CEPH_OSD_FLAG_LOCALIZE_READS))))) { + (!(m->has_flag(CEPH_OSD_FLAG_BALANCE_READS)) && + !(m->has_flag(CEPH_OSD_FLAG_LOCALIZE_READS)))) { // missing the specific snap we need; requeue and wait. assert(!op->may_write()); // only happens on a read/cache wait_for_unreadable_object(missing_oid, op);