summaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorGeir Storli <geirst@oath.com>2017-09-12 09:13:28 +0000
committerGeir Storli <geirst@oath.com>2017-09-12 09:13:28 +0000
commit8b6a7329e4ceda3e0a1ab4d171dc3e5529551119 (patch)
tree6717ffeccdc6e01e9a17e707546ba3e7a22abb10 /searchcore
parent67bf5f95c79f9452112931714fc1f273a19a5eb9 (diff)
Add parentheses for clarity.
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/vespa/searchcore/proton/server/visibilityhandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/server/visibilityhandler.cpp b/searchcore/src/vespa/searchcore/proton/server/visibilityhandler.cpp
index 171fb6b4f58..430f61eed1d 100644
--- a/searchcore/src/vespa/searchcore/proton/server/visibilityhandler.cpp
+++ b/searchcore/src/vespa/searchcore/proton/server/visibilityhandler.cpp
@@ -54,7 +54,7 @@ bool VisibilityHandler::startCommit(const LockGuard &unused, bool force)
{
(void) unused;
SerialNum current = _serial.getSerialNum();
- if (current > _lastCommitSerialNum || force) {
+ if ((current > _lastCommitSerialNum) || force) {
_writeService.master().execute(makeTask(makeClosure(this,
&VisibilityHandler::performCommit, force)));
return true;
@@ -66,7 +66,7 @@ void VisibilityHandler::performCommit(bool force)
{
// Called by master thread
SerialNum current = _serial.getSerialNum();
- if (current > _lastCommitSerialNum || force) {
+ if ((current > _lastCommitSerialNum) || force) {
IFeedView::SP feedView(_feedView.get());
feedView->forceCommit(current);
_lastCommitSerialNum = current;