summaryrefslogtreecommitdiff
path: root/db/cloner.cpp
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-06-09 12:08:02 -0400
committerEliot Horowitz <eliot@10gen.com>2010-06-09 12:08:02 -0400
commiteebb327db819bc0fe16fc32e8f144c2d71ca5a3c (patch)
tree32af67b7c646149f70c50de2ca5ad396e9811fd1 /db/cloner.cpp
parent3d046e9a94b84fd7c651867a9bc73516791f4689 (diff)
downloadmongo-eebb327db819bc0fe16fc32e8f144c2d71ca5a3c.tar.gz
make check for $ faster
Diffstat (limited to 'db/cloner.cpp')
-rw-r--r--db/cloner.cpp5
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;
}