Skip to content

Commit

Permalink
multi-tenant: remove futile mutex lock
Browse files Browse the repository at this point in the history
No shared resource is being changed when the lock is held, it is
immediately unlocked. So, remove it.
  • Loading branch information
inashivb authored and victorjulien committed Feb 15, 2024
1 parent 08db0f3 commit 7477307
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/detect-engine-loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -577,8 +577,6 @@ static TmEcode DetectLoaderThreadInit(ThreadVars *t, const void *initdata, void
*data = ftd;

DetectLoaderControl *loader = &loaders[ftd->instance];
SCMutexLock(&loader->m);
SCMutexUnlock(&loader->m);
loader->tv = t;

return TM_ECODE_OK;
Expand Down

0 comments on commit 7477307

Please sign in to comment.