From: Danny Al-Gaaf Date: Tue, 26 Feb 2013 15:03:19 +0000 (+0100) Subject: Client.cc: add parenthesis around expression X-Git-Tag: v0.59~95^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=43e2b51a1e9cc963921878c53a89a67ceff6d2c0;p=ceph.git Client.cc: add parenthesis around expression Add parenthesis around expressions like (x && y & z). Signed-off-by: Danny Al-Gaaf --- diff --git a/src/client/Client.cc b/src/client/Client.cc index 697804431aaa..de1d8da270cc 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -5449,7 +5449,7 @@ int Client::_read(Fh *f, int64_t offset, uint64_t size, bufferlist *bl) movepos = true; } - if (!conf->client_debug_force_sync_read && have & CEPH_CAP_FILE_CACHE) { + if (!conf->client_debug_force_sync_read && (have & CEPH_CAP_FILE_CACHE)) { if (f->flags & O_RSYNC) { _flush_range(in, offset, size); @@ -5769,7 +5769,7 @@ int Client::_write(Fh *f, int64_t offset, uint64_t size, const char *buf) // flush cached write if O_SYNC is set on file fh // O_DSYNC == O_SYNC on linux < 2.6.33 // O_SYNC = __O_SYNC | O_DSYNC on linux >= 2.6.33 - if (f->flags & O_SYNC || f->flags & O_DSYNC) { + if ((f->flags & O_SYNC) || (f->flags & O_DSYNC)) { _flush_range(in, offset, size); } } else {