Commit 8956c438 authored by Matthieu Dorier's avatar Matthieu Dorier
Browse files

added locking in post-migration callback

parent 36b88282
......@@ -306,6 +306,9 @@ extern "C" int sdskv_provider_attach_database(
auto r = at_exit([provider]() { ABT_rwlock_unlock(provider->lock); });
provider->name2id[std::string(config->db_name)] = id;
provider->id2name[id] = std::string(config->db_name);
provider->databases[id] = db;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment