summaryrefslogtreecommitdiffstats
path: root/lib/public/Lock/ILockingProvider.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2020-06-30 18:10:42 +0200
committerRobin Appelman <robin@icewind.nl>2020-06-30 18:10:42 +0200
commitda2d4250446b6e2f921bd3de0420738881792bd3 (patch)
tree876c3a427de61033593de9e93a606654172fae79 /lib/public/Lock/ILockingProvider.php
parent26aa83890667202154ef086e27e769919fb56a47 (diff)
downloadnextcloud-server-da2d4250446b6e2f921bd3de0420738881792bd3.tar.gz
nextcloud-server-da2d4250446b6e2f921bd3de0420738881792bd3.zip
add proper paths to locking exceptions
while some code paths do wrap the "raw" locking exception into one with a proper path, not all of them do by adding the proper path to the original exception we ensure that we always have the usefull information in out logs Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/public/Lock/ILockingProvider.php')
-rw-r--r--lib/public/Lock/ILockingProvider.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/public/Lock/ILockingProvider.php b/lib/public/Lock/ILockingProvider.php
index 34f69abdc09..6886b176c40 100644
--- a/lib/public/Lock/ILockingProvider.php
+++ b/lib/public/Lock/ILockingProvider.php
@@ -55,10 +55,11 @@ interface ILockingProvider {
/**
* @param string $path
* @param int $type self::LOCK_SHARED or self::LOCK_EXCLUSIVE
+ * @param string $readablePath human readable path to use in error messages, since 20.0.0
* @throws \OCP\Lock\LockedException
* @since 8.1.0
*/
- public function acquireLock(string $path, int $type);
+ public function acquireLock(string $path, int $type, string $readablePath = null);
/**
* @param string $path