Skip to content

Commit c236f8b

Browse files
author
10255046
committed
Fixes:issue4603
Signed-off-by: 10255046 <[email protected]>
1 parent c440132 commit c236f8b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

xlators/mgmt/glusterd/src/glusterd-locks.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,7 @@ glusterd_mgmt_v3_lock(const char *name, uuid_t uuid, uint32_t *op_errno,
495495
xlator_t *this = THIS;
496496
struct timespec delay = {0};
497497
char *key_dup = NULL;
498+
int keylen;
498499

499500
priv = this->private;
500501
GF_ASSERT(priv);
@@ -586,6 +587,8 @@ glusterd_mgmt_v3_lock(const char *name, uuid_t uuid, uint32_t *op_errno,
586587
"Unable to set timer in mgmt_v3 lock");
587588
GF_FREE(key_dup);
588589
GF_FREE(mgmt_lock_timer);
590+
keylen = strlen(key);
591+
dict_deln(priv->mgmt_v3_lock, key, keylen);
589592
goto out;
590593
}
591594

0 commit comments

Comments
 (0)