From a8c05c5fd10f1aa9a57b7edbe0589d4a0b17f5b0 Mon Sep 17 00:00:00 2001 From: Eric Milkie Date: Wed, 27 Feb 2013 07:25:51 -0500 Subject: SERVER-7772 move all of optime into optime.cpp/.h --- src/mongo/db/common.cpp | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'src/mongo/db/common.cpp') 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; - } - -} -- cgit v1.2.1