From cd2743764dfc2801029051f69ace657ff0e4b549 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Sun, 22 Oct 2023 12:35:56 -0700 Subject: [PATCH] tw: remove leading slash from lock key Signed-off-by: Varun Patil --- lib/Db/TimelineWrite.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Db/TimelineWrite.php b/lib/Db/TimelineWrite.php index d2a7da5e..82927c9d 100644 --- a/lib/Db/TimelineWrite.php +++ b/lib/Db/TimelineWrite.php @@ -52,7 +52,7 @@ class TimelineWrite // Check if we need to lock the file if ($lock) { - $lockKey = '/memories/'.$file->getId(); + $lockKey = 'memories/'.$file->getId(); $lockType = ILockingProvider::LOCK_EXCLUSIVE; // Throw directly to caller if we can't get the lock