aboutsummaryrefslogtreecommitdiff
path: root/databases/mongodb/files/patch-src_mongo_db_kill_current_op.cpp
blob: 23061135c48682338e2bf89a8c802f9d24e57b8d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- src/mongo/db/kill_current_op.cpp.orig	2014-05-15 15:30:33.100157820 +0000
+++ src/mongo/db/kill_current_op.cpp	2014-05-15 15:35:12.714138934 +0000
@@ -152,7 +152,7 @@
         }
 
         // Return true with (approx) probability p = "chance".  Recall: 0 <= chance <= 1.
-        double next = static_cast<double>(std::abs(checkForInterruptPRNG.nextInt64()));
+        double next = std::abs(static_cast<double>(checkForInterruptPRNG.nextInt64()));
         double upperBound =
             std::numeric_limits<int64_t>::max() * failPointInfo["chance"].numberDouble();
         if (next > upperBound) {