diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-06-09 12:08:02 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-06-09 12:08:02 -0400 |
commit | eebb327db819bc0fe16fc32e8f144c2d71ca5a3c (patch) | |
tree | 32af67b7c646149f70c50de2ca5ad396e9811fd1 /db/cloner.cpp | |
parent | 3d046e9a94b84fd7c651867a9bc73516791f4689 (diff) | |
download | mongo-eebb327db819bc0fe16fc32e8f144c2d71ca5a3c.tar.gz |
make check for $ faster
Diffstat (limited to 'db/cloner.cpp')
-rw-r--r-- | db/cloner.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/db/cloner.cpp b/db/cloner.cpp index 8dd06bd9c4e..c23a3d5f32b 100644 --- a/db/cloner.cpp +++ b/db/cloner.cpp @@ -234,10 +234,7 @@ namespace mongo { continue; } } - if( strcmp( from_name, "local.oplog.$main" ) == 0 ) { - // nothing - want to clone this one - } else if( strchr(from_name, '$') ) { - // don't clone index namespaces -- we take care of those separately below. + if( ! nsDollarCheck( from_name ) ){ log(2) << "\t\t not cloning because has $ " << endl; continue; } |