tsan fix: rpc.wallet_destroy (#2615)
This commit is contained in:
parent
ec2649a95e
commit
6c011e9656
2 changed files with 4 additions and 2 deletions
|
|
@ -380,7 +380,9 @@ void nano::wallet_store::initialize (nano::transaction const & transaction_a, bo
|
||||||
{
|
{
|
||||||
debug_assert (strlen (path_a.c_str ()) == path_a.size ());
|
debug_assert (strlen (path_a.c_str ()) == path_a.size ());
|
||||||
auto error (0);
|
auto error (0);
|
||||||
error |= mdb_dbi_open (tx (transaction_a), path_a.c_str (), MDB_CREATE, &handle);
|
MDB_dbi handle_l;
|
||||||
|
error |= mdb_dbi_open (tx (transaction_a), path_a.c_str (), MDB_CREATE, &handle_l);
|
||||||
|
handle = handle_l;
|
||||||
init_a = error != 0;
|
init_a = error != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -110,7 +110,7 @@ public:
|
||||||
static size_t const seed_iv_index;
|
static size_t const seed_iv_index;
|
||||||
static int const special_count;
|
static int const special_count;
|
||||||
nano::kdf & kdf;
|
nano::kdf & kdf;
|
||||||
MDB_dbi handle{ 0 };
|
std::atomic<MDB_dbi> handle{ 0 };
|
||||||
std::recursive_mutex mutex;
|
std::recursive_mutex mutex;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue