diff options
author | Aaron <aaron@10gen.com> | 2010-06-08 11:50:45 -0700 |
---|---|---|
committer | Aaron <aaron@10gen.com> | 2010-06-08 11:50:45 -0700 |
commit | dc00413381cd8d6e3d586411aa757044f91edc6b (patch) | |
tree | 93ee1bc3d65e73a8d058f481351bd0c03e74b02b /db/pdfile.cpp | |
parent | 201d501e391d3096429c1f1ac53033e3562edbdc (diff) | |
download | mongo-dc00413381cd8d6e3d586411aa757044f91edc6b.tar.gz |
SERVER-1203 repair oplog properly
Diffstat (limited to 'db/pdfile.cpp')
-rw-r--r-- | db/pdfile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 ) { |