diff options
author | Stelios Fragkakis <52996999+stelfrag@users.noreply.github.com> | 2022-07-18 16:45:57 +0300 |
---|---|---|
committer | Stelios Fragkakis <52996999+stelfrag@users.noreply.github.com> | 2022-07-18 16:45:57 +0300 |
commit | 4d936d5167a75093b1e771ef41a56dbcc8d9c67a (patch) | |
tree | 02310af18e0eca6d67c0fdc30e1b0e1bf650d46c | |
parent | eb560f12e138905a46beea9d35dde9e5fc0561af (diff) |
Properly unlock context
-rw-r--r-- | database/rrdcontext.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/database/rrdcontext.c b/database/rrdcontext.c index 282d398d98..5f278fd476 100644 --- a/database/rrdcontext.c +++ b/database/rrdcontext.c @@ -2354,8 +2354,10 @@ static uint64_t rrdcontext_version_hash_with_callback( rrdcontext_lock(rc); // skip any deleted contexts - if(unlikely(rc->flags & RRD_FLAG_DELETED)) + if(unlikely(rc->flags & RRD_FLAG_DELETED)) { + rrdcontext_unlock(rc); continue; + } if(unlikely(callback)) callback(rc, snapshot, bundle); |