From 4b6447bdcb5c1934c15925c8e7212597de5bcb04 Mon Sep 17 00:00:00 2001 From: Eliot Horowitz Date: Thu, 26 Aug 2010 12:16:10 -0400 Subject: [PATCH] use logns so dbtop is sane --- db/oplog.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/db/oplog.cpp b/db/oplog.cpp index de9420ecfd8..afec94065d7 100644 --- a/db/oplog.cpp +++ b/db/oplog.cpp @@ -62,7 +62,7 @@ namespace mongo { rsOplogDetails = nsdetails(logns); massert(13389, "local.oplog.rs missing. did you drop it? if so restart server", rsOplogDetails); } - Client::Context ctx( "" , localDB, false ); + Client::Context ctx( logns , localDB, false ); { int len = op.objsize(); Record *r = theDataFileMgr.fast_oplog_insert(rsOplogDetails, logns, len); @@ -136,7 +136,7 @@ namespace mongo { rsOplogDetails = nsdetails(logns); massert(13347, "local.oplog.rs missing. did you drop it? if so restart server", rsOplogDetails); } - Client::Context ctx( "" , localDB, false ); + Client::Context ctx( logns , localDB, false ); r = theDataFileMgr.fast_oplog_insert(rsOplogDetails, logns, len); /* todo: now() has code to handle clock skew. but if the skew server to server is large it will get unhappy. this code (or code in now() maybe) should be improved. @@ -230,7 +230,7 @@ namespace mongo { localOplogMainDetails = nsdetails(logNS); assert( localOplogMainDetails ); } - Client::Context ctx( "" , localDB, false ); + Client::Context ctx( logNS , localDB, false ); r = theDataFileMgr.fast_oplog_insert(localOplogMainDetails, logNS, len); } else { Client::Context ctx( logNS, dbpath, 0, false );