diff options
author | Eric Milkie <milkie@10gen.com> | 2013-02-27 07:25:51 -0500 |
---|---|---|
committer | Eric Milkie <milkie@10gen.com> | 2013-03-11 11:15:02 -0400 |
commit | a8c05c5fd10f1aa9a57b7edbe0589d4a0b17f5b0 (patch) | |
tree | 3ef0484dbb81d3b8d228298c788e98694b667cd4 /src/mongo/db/common.cpp | |
parent | cac2effa776649208b8428f6c8c9692d45148fd2 (diff) | |
download | mongo-a8c05c5fd10f1aa9a57b7edbe0589d4a0b17f5b0.tar.gz |
SERVER-7772 move all of optime into optime.cpp/.h
Diffstat (limited to 'src/mongo/db/common.cpp')
-rw-r--r-- | src/mongo/db/common.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/mongo/db/common.cpp b/src/mongo/db/common.cpp index 970b8386fde..2eb21edbde0 100644 --- a/src/mongo/db/common.cpp +++ b/src/mongo/db/common.cpp @@ -24,23 +24,3 @@ /** * this just has globals */ -namespace mongo { - - NOINLINE_DECL OpTime OpTime::skewed() { - bool toLog = false; - ONCE toLog = true; - RARELY toLog = true; - last.i++; - if ( last.i & 0x80000000 ) - toLog = true; - if ( toLog ) { - log() << "clock skew detected prev: " << last.secs << " now: " << (unsigned) time(0) << endl; - } - if ( last.i & 0x80000000 ) { - log() << "error large clock skew detected, shutting down" << endl; - throw ClockSkewException(); - } - return last; - } - -} |