From 1a26bffb5ce4de70b5a0376e658391a2aeb97fd5 Mon Sep 17 00:00:00 2001 From: Eliot Horowitz Date: Wed, 8 Jan 2014 17:52:33 -0500 Subject: SERVER-12201: do not allow index entries on local.oplog.* --- src/mongo/db/namespace_string.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mongo/db/namespace_string.h') diff --git a/src/mongo/db/namespace_string.h b/src/mongo/db/namespace_string.h index bea5a99f0ea..1d2173cf8d9 100644 --- a/src/mongo/db/namespace_string.h +++ b/src/mongo/db/namespace_string.h @@ -78,6 +78,7 @@ namespace mongo { bool isSystemDotIndexes() const { return coll() == "system.indexes"; } bool isConfigDB() const { return db() == "config"; } bool isCommand() const { return coll() == "$cmd"; } + bool isOplog() const { return oplog( _ns ); } bool isSpecialCommand() const { return coll().startsWith("$cmd.sys"); } bool isSpecial() const { return special( _ns ); } bool isNormal() const { return normal( _ns ); } -- cgit v1.2.1