summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-12-09 10:18:09 -0500
committerEliot Horowitz <eliot@10gen.com>2009-12-09 10:19:11 -0500
commitd6d9ce8ffeb383b942cb267704ae8a3dcb9118a5 (patch)
treedb342671c240ee9aee96cbbcdbfbd5324039724a
parent306c8c6b9841d600f630840842fe7daffde1e275 (diff)
downloadmongo-d6d9ce8ffeb383b942cb267704ae8a3dcb9118a5.tar.gz
slaves can clone system.js SERVER-466
-rw-r--r--db/cloner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/cloner.cpp b/db/cloner.cpp
index a4ac890da94..11aa021fb3e 100644
--- a/db/cloner.cpp
+++ b/db/cloner.cpp
@@ -216,7 +216,7 @@ namespace mongo {
if( strstr(from_name, ".system.") ) {
/* system.users is cloned -- but nothing else from system. */
- if( strstr(from_name, ".system.users") == 0 ){
+ if( legalClientSystemNS( from_name , true ) == 0 ){
log(2) << "\t\t not cloning because system collection" << endl;
continue;
}