We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc206ec commit c0a6852Copy full SHA for c0a6852
util/optime.h
@@ -46,6 +46,10 @@ namespace mongo {
46
static OpTime now() {
47
unsigned t = (unsigned) time(0);
48
// DEV assertInWriteLock();
49
+ if ( t < last.secs ){
50
+ log() << "clock skew detected prev: " << last.secs << " now: " << t << " trying to handle..." << endl;
51
+ t = last.secs;
52
+ }
53
if ( last.secs == t ) {
54
last.i++;
55
return last;
0 commit comments