Skip to content

Commit 24765db

Browse files
committed
Fix locking timeout on invalid IDs
1 parent 82393f2 commit 24765db

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

apps/labrinth/src/database/redis.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,11 @@ impl RedisPool {
432432
}
433433

434434
for (key, _) in ids {
435+
pipe.atomic().del(format!(
436+
"{}_{namespace}:{}/lock",
437+
self.meta_namespace,
438+
key.to_lowercase()
439+
));
435440
pipe.atomic().del(format!(
436441
"{}_{namespace}:{key}/lock",
437442
self.meta_namespace

0 commit comments

Comments
 (0)