Unverified Commit 6c648928 authored by debing.sun's avatar debing.sun Committed by GitHub
Browse files

Fix a race condition issue in the cache_memory of functionsLibCtx (#13476)

This is a missing of the PR https://github.com/redis/redis/pull/13383.
We will call `functionsLibCtxClear()` in bio, so we shouldn't touch
`curr_functions_lib_ctx` in it.
parent 2b88db90
...@@ -171,7 +171,7 @@ void functionsLibCtxClear(functionsLibCtx *lib_ctx) { ...@@ -171,7 +171,7 @@ void functionsLibCtxClear(functionsLibCtx *lib_ctx) {
stats->n_lib = 0; stats->n_lib = 0;
} }
dictReleaseIterator(iter); dictReleaseIterator(iter);
curr_functions_lib_ctx->cache_memory = 0; lib_ctx->cache_memory = 0;
} }
void functionsLibCtxClearCurrent(int async) { void functionsLibCtxClearCurrent(int async) {
......
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