From dc00413381cd8d6e3d586411aa757044f91edc6b Mon Sep 17 00:00:00 2001 From: Aaron Date: Tue, 8 Jun 2010 11:50:45 -0700 Subject: SERVER-1203 repair oplog properly --- db/pdfile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'db/pdfile.cpp') diff --git a/db/pdfile.cpp b/db/pdfile.cpp index ba5e6139179..377162670b1 100644 --- a/db/pdfile.cpp +++ b/db/pdfile.cpp @@ -1349,7 +1349,7 @@ namespace mongo { */ DiskLoc DataFileMgr::insert(const char *ns, const void *obuf, int len, bool god, const BSONElement &writeId, bool mayAddIndex) { bool wouldAddIndex = false; - massert( 10093 , "cannot insert into reserved $ collection", god || strchr(ns, '$') == 0 ); + massert( 10093 , "cannot insert into reserved $ collection", god || strchr(ns, '$') == 0 || strcmp( ns, "local.oplog.$main" ) == 0 ); uassert( 10094 , "invalid ns", strchr( ns , '.' ) > 0 ); const char *sys = strstr(ns, "system."); if ( sys ) { -- cgit v1.2.1