diff options
author | Eliot Horowitz <eliot@10gen.com> | 2014-01-08 17:52:33 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2014-01-09 14:21:50 -0500 |
commit | 1a26bffb5ce4de70b5a0376e658391a2aeb97fd5 (patch) | |
tree | 8b058656b920760c8706c8bde34a4d2f5a0912ed /src/mongo/db/namespace_string.h | |
parent | 24ea972c1c2546d9de62856d9fcb10de5cd49078 (diff) | |
download | mongo-1a26bffb5ce4de70b5a0376e658391a2aeb97fd5.tar.gz |
SERVER-12201: do not allow index entries on local.oplog.*
Diffstat (limited to 'src/mongo/db/namespace_string.h')
-rw-r--r-- | src/mongo/db/namespace_string.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 ); } |