From af5965a6ef9ebe76a1b5ff5c6a82fdaa5f4d3658 Mon Sep 17 00:00:00 2001 From: David Steele Date: Fri, 29 Jul 2016 18:17:32 -0400 Subject: [PATCH] Fixed an invalid log call in lock routines. --- doc/xml/release.xml | 4 ++++ lib/pgBackRest/Common/Lock.pm | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/xml/release.xml b/doc/xml/release.xml index c95561336..f8184b135 100644 --- a/doc/xml/release.xml +++ b/doc/xml/release.xml @@ -131,6 +131,10 @@

Fixed an issue where the contents of pg_xlog were being copied if the directory was symlinked.

+ + +

Fixed an invalid log call in lock routines.

+
diff --git a/lib/pgBackRest/Common/Lock.pm b/lib/pgBackRest/Common/Lock.pm index c6aaf9f50..b6436ef55 100644 --- a/lib/pgBackRest/Common/Lock.pm +++ b/lib/pgBackRest/Common/Lock.pm @@ -97,7 +97,7 @@ sub lockAcquire # Cannot proceed if a lock is currently held if (defined($strCurrentLockType)) { - confess &lock(ASSERT, "${strCurrentLockType} lock is already held"); + confess &log(ASSERT, "${strCurrentLockType} lock is already held"); } # Check if processes are currently stopped