diff options
author | James Wahlin <james.wahlin@10gen.com> | 2016-08-08 12:27:35 -0400 |
---|---|---|
committer | James Wahlin <james.wahlin@10gen.com> | 2016-08-09 19:42:33 -0400 |
commit | 875bf157f0d16b10896528026f0e2be93c466f90 (patch) | |
tree | a35097d30807bddd98e4b8c0b68894088bb42d41 /src/mongo/db/cloner.cpp | |
parent | d930f4832631eca7092ada4328d780f2b8d19d31 (diff) | |
download | mongo-875bf157f0d16b10896528026f0e2be93c466f90.tar.gz |
SERVER-24506 Cloner support for views
Diffstat (limited to 'src/mongo/db/cloner.cpp')
-rw-r--r-- | src/mongo/db/cloner.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/cloner.cpp b/src/mongo/db/cloner.cpp index d43b145d776..a9e9d763871 100644 --- a/src/mongo/db/cloner.cpp +++ b/src/mongo/db/cloner.cpp @@ -47,6 +47,7 @@ #include "mongo/db/catalog/index_create.h" #include "mongo/db/commands.h" #include "mongo/db/commands/copydb.h" +#include "mongo/db/commands/list_collections_filter.h" #include "mongo/db/commands/rename_collection.h" #include "mongo/db/concurrency/write_conflict_exception.h" #include "mongo/db/dbdirectclient.h" @@ -568,7 +569,8 @@ Status Cloner::copyDb(OperationContext* txn, // getCollectionInfos may make a remote call, which may block indefinitely, so release // the global lock that we are entering with. Lock::TempRelease tempRelease(txn->lockState()); - std::list<BSONObj> initialCollections = _conn->getCollectionInfos(opts.fromDB); + std::list<BSONObj> initialCollections = _conn->getCollectionInfos( + opts.fromDB, ListCollectionsFilter::makeTypeCollectionFilter()); auto status = filterCollectionsForClone(opts, initialCollections); if (!status.isOK()) { return status.getStatus(); |