Skip to content

correction to renameCollectionSameDB action type #1641

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

correction to renameCollectionSameDB action type #1641

wants to merge 1 commit into from

Conversation

bgrabar
Copy link

@bgrabar bgrabar commented Mar 7, 2014

Ready for merge. Corrections to the definition of the renameCollectionSameDB action. Reviewed & approved by Andreas.

@tychoish
Copy link
Contributor

tychoish commented Mar 7, 2014

You made this change once, which was merged as f3be46d. Kay and I spent a while with the source code, and made a few very minor changes, committed as bf2bccc, which conveys the same point and introduces a little redundancy, but I think is cognitively less difficult to untangle (because it's a bit logically redundant,)

Are there active objections to the current wording? If there aren't I'd like to keep the text as it is.

https://github.com/mongodb/mongo/blob/master/src/mongo/db/commands/rename_collection_common.cpp

@bgrabar
Copy link
Author

bgrabar commented Mar 7, 2014

There's a couple of important changes according to Andreas:

  1. The requirement that the user either have "find" on the source or not have "find" on the destination always applies, whether or not the collection already exists.
  2. The dropCollection action is required on the destination collection, not the source.

@tychoish
Copy link
Contributor

tychoish commented Mar 7, 2014

merged!

@tychoish tychoish closed this Mar 7, 2014
mongo-cr-bot pushed a commit that referenced this pull request Aug 17, 2022
* DOCSP-24275 add insert operation to survey examples

* DOCSP-24275 add insert operation to survey examples
mongo-cr-bot pushed a commit that referenced this pull request Aug 17, 2022
* DOCSP-24275 add insert operation to survey examples

* DOCSP-24275 add insert operation to survey examples
mongo-cr-bot pushed a commit that referenced this pull request Aug 17, 2022
* DOCSP-24275 add insert operation to survey examples

* DOCSP-24275 add insert operation to survey examples
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants