diff options
author | Benety Goh <benety@mongodb.com> | 2013-10-09 11:47:44 -0400 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2013-10-10 08:59:46 -0400 |
commit | 34f6c8e7db271ae320b0ae384b1d2f67cafb8e16 (patch) | |
tree | b167aee39cbe37968485e086970d2792fcb6f894 /src/mongo/util/time_support.h | |
parent | b49b13c48e0450398642d240b4dbbd259c399dc1 (diff) | |
download | mongo-34f6c8e7db271ae320b0ae384b1d2f67cafb8e16.tar.gz |
SERVER-10202 added testing-only function getNextSleepMillis(). stabilized BasicTests::SleepBackoffTest under Windows 32-bit
Diffstat (limited to 'src/mongo/util/time_support.h')
-rw-r--r-- | src/mongo/util/time_support.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/util/time_support.h b/src/mongo/util/time_support.h index 437bda4de78..46cee85e97a 100644 --- a/src/mongo/util/time_support.h +++ b/src/mongo/util/time_support.h @@ -99,6 +99,12 @@ namespace mongo { void nextSleepMillis(); + /** + * testing-only function. used in dbtests/basictests.cpp + */ + int getNextSleepMillis(int lastSleepMillis, unsigned long long currTimeMillis, + unsigned long long lastErrorTimeMillis) const; + private: // Parameters |