diff options
author | Ted Tuckman <ted.tuckman@mongodb.com> | 2019-11-15 19:50:52 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-11-15 19:50:52 +0000 |
commit | 6258369bc2d74e69a5e1fd8e025a291550aeb368 (patch) | |
tree | be895955944d025eb4dd94f1771ef883cb3515cc /src/mongo/db/catalog/rename_collection.h | |
parent | ab0e1e6875faa56155eb4777be66b575f6b48395 (diff) | |
download | mongo-6258369bc2d74e69a5e1fd8e025a291550aeb368.tar.gz |
SERVER-42693 Add renameAndPreserveOptions command and allow $out to output to different DB
Diffstat (limited to 'src/mongo/db/catalog/rename_collection.h')
-rw-r--r-- | src/mongo/db/catalog/rename_collection.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/db/catalog/rename_collection.h b/src/mongo/db/catalog/rename_collection.h index 8b4af732173..7269fb93ac9 100644 --- a/src/mongo/db/catalog/rename_collection.h +++ b/src/mongo/db/catalog/rename_collection.h @@ -42,6 +42,13 @@ namespace repl { class OpTime; } // namespace repl +void doLocalRenameIfOptionsAndIndexesHaveNotChanged(OperationContext* opCtx, + const NamespaceString& sourceNs, + const NamespaceString& targetNs, + bool dropTarget, + bool stayTemp, + std::list<BSONObj> originalIndexes, + BSONObj collectionOptions); /** * Renames the collection from "source" to "target" and drops the existing collection iff * "dropTarget" is true. "stayTemp" indicates whether a collection should maintain its |