Skip to content
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

feat: add commitQuorum option to createIndexes command #2345

Merged
merged 4 commits into from
May 5, 2020

Conversation

emadum
Copy link
Contributor

@emadum emadum commented May 4, 2020

Adds commitQuorum option (new in MongoDB 4.4) to createIndexes command
and associated helpers:
db.createIndex, collection.createIndex, collection.createIndexes

NODE-2569

Description

What changed?

Are there any files to ignore?

Adds commitQuorum option (new in MongoDB 4.4) to createIndexes command
and associated helpers:
db.createIndex, collection.createIndex, collection.createIndexes

NODE-2569
@emadum emadum requested a review from mbroadst May 4, 2020 20:53
// createIndexes is always called with an array of index spec objects
if (!Array.isArray(indexes) || Array.isArray(indexes[0])) {
this.onlyReturnNameOfCreatedIndex = true;
// TODO: remove in v4 (breaking change); make createIndex return full response as createIndexes does
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll make a Jira ticket for this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@emadum
Copy link
Contributor Author

emadum commented May 4, 2020

Waiting for #2350 to get merged into master, so withMonitoredClient is available.

@emadum emadum merged commit 168a952 into master May 5, 2020
@emadum emadum deleted the NODE-2569/master/commit-quorum branch May 5, 2020 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants