summaryrefslogtreecommitdiff
path: root/src/mongo/client/examples/mongoperf.cpp
diff options
context:
space:
mode:
authorDmitry Kostenko <codeforsmile@gmail.com>2014-06-12 11:37:22 +0200
committerBenety Goh <benety@mongodb.com>2014-06-17 09:39:46 -0400
commitb21945fe74eda3579896d727cb88e68b0b508305 (patch)
tree57cab1c38e73ee2783cc88f3642bfc0d462d09df /src/mongo/client/examples/mongoperf.cpp
parent7699fa4df7043af48bb79f11a7f9cdeb58a1d6db (diff)
downloadmongo-b21945fe74eda3579896d727cb88e68b0b508305.tar.gz
SERVER-14282 Fix random crash with recSizeKB > 4
Signed-off-by: Benety Goh <benety@mongodb.com>
Diffstat (limited to 'src/mongo/client/examples/mongoperf.cpp')
-rw-r--r--src/mongo/client/examples/mongoperf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/client/examples/mongoperf.cpp b/src/mongo/client/examples/mongoperf.cpp
index 6c67ee8c23a..be1d76b081b 100644
--- a/src/mongo/client/examples/mongoperf.cpp
+++ b/src/mongo/client/examples/mongoperf.cpp
@@ -121,7 +121,7 @@ void workerThread() {
}
if( w ) {
for( unsigned p = P; p <= recSizeKB; p += P ) {
- if( rofs < len )
+ if( wofs < len )
mmf[wofs] = 3;
wofs += PG;
}