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

fix: make sure SCRIPT FLUSH concludes #2565

Merged
merged 1 commit into from
Feb 9, 2024
Merged

fix: make sure SCRIPT FLUSH concludes #2565

merged 1 commit into from
Feb 9, 2024

Conversation

romange
Copy link
Collaborator

@romange romange commented Feb 8, 2024

InterpreterManager::Reset creates now a new storage for interpreters,
and waits for the old ones to be returned.

InterpreterManager::Reset creates now a new storage for interpreters,
 and waits for the old ones to be returned.

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
@romange romange requested a review from dranikpg February 8, 2024 16:37

std::vector<Interpreter> next_storage;
next_storage.reserve(storage_.capacity());
next_storage.resize(storage_.size());
Copy link
Contributor

Choose a reason for hiding this comment

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

We probably don't need to create many interpreters at once

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

what do you suggest? removing the resize?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, but that's not necessarily, it just spreads the latency

@romange romange merged commit 908efff into main Feb 9, 2024
10 checks passed
@romange romange deleted the Pr2 branch February 9, 2024 16:55
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