summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2016-03-11 09:51:57 -0500
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2016-03-11 09:56:53 -0500
commit73409b9364b8d83442a23a57ad910fc0438511ec (patch)
tree1b3f52105fe78a0b6abd691664a4bebff01835f2
parent657288e29880c0c8518452880715d57effdbeb89 (diff)
downloadmongo-73409b9364b8d83442a23a57ad910fc0438511ec.tar.gz
SERVER-21681 Replace 'or' with operator || to fix Windows build
-rw-r--r--src/mongo/db/storage/wiredtiger/wiredtiger_index.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/storage/wiredtiger/wiredtiger_index.cpp b/src/mongo/db/storage/wiredtiger/wiredtiger_index.cpp
index de36010d7a2..57f54ab30d9 100644
--- a/src/mongo/db/storage/wiredtiger/wiredtiger_index.cpp
+++ b/src/mongo/db/storage/wiredtiger/wiredtiger_index.cpp
@@ -415,7 +415,7 @@ long long WiredTigerIndex::getSpaceUsedBytes(OperationContext* txn) const {
auto removes = getStats(WT_STAT_DSRC_CURSOR_REMOVE);
auto insertBytes = getStats(WT_STAT_DSRC_CURSOR_INSERT_BYTES);
- if (inserts == 0 or removes >= inserts)
+ if (inserts == 0 || removes >= inserts)
return 0;
// Rough approximation of index size as average entry size times number of entries.