Fix parentheses issue in StorageMetrics.actor.h

This commit is contained in:
Yichi Chiang 2017-07-27 12:03:36 -07:00
parent cdc62e265c
commit 37e5e2acbb
1 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ struct StorageMetricSample {
bck_split.decrementNonEnd();
KeyRef split = keyBetween(KeyRangeRef(bck_split != sample.begin() ? std::max<KeyRef>(*bck_split,range.begin) : range.begin, *it));
if(!front || (getEstimate(KeyRangeRef(range.begin, split)) > 0) && split.size() <= CLIENT_KNOBS->SPLIT_KEY_SIZE_LIMIT )
if(!front || (getEstimate(KeyRangeRef(range.begin, split)) > 0 && split.size() <= CLIENT_KNOBS->SPLIT_KEY_SIZE_LIMIT))
return split;
}
@ -63,7 +63,7 @@ struct StorageMetricSample {
++it;
KeyRef split = keyBetween(KeyRangeRef(*fwd_split, it != sample.end() ? std::min<KeyRef>(*it, range.end) : range.end));
if(front || (getEstimate(KeyRangeRef(split, range.end)) > 0) && split.size() <= CLIENT_KNOBS->SPLIT_KEY_SIZE_LIMIT )
if(front || (getEstimate(KeyRangeRef(split, range.end)) > 0 && split.size() <= CLIENT_KNOBS->SPLIT_KEY_SIZE_LIMIT))
return split;
fwd_split = it;