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

Check index params before drop #82

Merged

Conversation

Ijmir
Copy link
Contributor

@Ijmir Ijmir commented Nov 23, 2016

  1. checking if index parameters have changed before dropping
  2. index is created in background, otherwise it can hang the db (for large collection) until creation is finished

@yurijmikhalevich yurijmikhalevich merged commit 5506c26 into winstonjs:master Dec 11, 2016
@yurijmikhalevich
Copy link
Member

Hi. Thank you for the PR. Merged. Released as 2.0.5.

Btw, you forgot about returning db in the end of your function 47cfc5b...c11b08b#diff-1876e835f0fcae90facf5141326880b0R124 and haven't removed obsolete (after your patch) dropIndex error check.

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.

None yet

2 participants