We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Description
kv.h::Store::clear needs a version spinlock
kv.h::Store::clear
std::lock_guard<SpinLock> vguard(version_lock);
void clear() { std::lock_guard<SpinLock> mguard(maps_lock); // This deletes the entire content of all maps in the store. for (auto& map : maps) map.second->lock(); for (auto& map : maps) map.second->clear(); for (auto& map : maps) map.second->unlock(); <<<<<<<<<<<<<<<<< missing version_lock >>>>>>>>>>>>>> version = 0; compacted = 0; last_replicated = 0; last_committable = 0; rollback_count = 0; pending_txs.clear(); }
The text was updated successfully, but these errors were encountered:
@douglasism this call is only used in tests, but you're absolutely right!
Sorry, something went wrong.
achamayou
Successfully merging a pull request may close this issue.
Description
kv.h::Store::clear
needs a version spinlockThe text was updated successfully, but these errors were encountered: