Skip to content

Commit

Permalink
Don't notify dead threads
Browse files Browse the repository at this point in the history
  • Loading branch information
kriszyp committed May 22, 2024
1 parent 163bf2d commit c88ab30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ void WriteWorker::Write() {
std::atomic_fetch_or((std::atomic<uint32_t>*) instructions, (uint32_t) TXN_COMMITTED);
if (had_changes) {
ExtendedEnv* extended_env = (ExtendedEnv*) mdb_env_get_userctx(env);
extended_env->notifyUserCallbacks(std::string("__committed__"));
if (extended_env) extended_env->notifyUserCallbacks(std::string("__committed__"));
}
}

Expand Down

0 comments on commit c88ab30

Please sign in to comment.