Skip to content
Snippets Groups Projects
Commit 0d6f5acf authored by Fedor Telnov's avatar Fedor Telnov
Browse files

fix: use tarantool's Mutex instead of RefCells

Previously sbroad used ordinary Rust's `RefCell` for smart pointer behaviour.
It's pretty dangerous in tarantool environment, as it will be human responsibility to
check that no yield happens before `RefCell` is unlocked.

It causes problems with, for instance, cartridge's `apply_config` during live load - 
it needs to exclusively borrow the metadata, but it's already borrowed by ordinary insert requests.
parent 0c57585a
No related branches found
Tags 1.7.1
1 merge request!424fix: use tarantool's Mutex instead of RefCells
Pipeline #38916 passed
Showing
with 130 additions and 267 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment