aboutsummaryrefslogtreecommitdiff
path: root/src/sync.cpp
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-06-22 18:12:26 +0300
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-06-22 18:12:26 +0300
commit35599344c886b62f198e35fd940c1ab15c4a9f90 (patch)
tree3553e0ce0b763148625d24d41dd79c7c5d88d159 /src/sync.cpp
parent8ef15e8a86038225afef2487ca23abc10ca5dffa (diff)
Fix mistakenly swapped "previous" and "current" lock orders
Diffstat (limited to 'src/sync.cpp')
-rw-r--r--src/sync.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sync.cpp b/src/sync.cpp
index 9abdedbed4..e7ea731482 100644
--- a/src/sync.cpp
+++ b/src/sync.cpp
@@ -105,7 +105,7 @@ static void potential_deadlock_detected(const LockPair& mismatch, const LockStac
{
LogPrintf("POTENTIAL DEADLOCK DETECTED\n");
LogPrintf("Previous lock order was:\n");
- for (const LockStackItem& i : s2) {
+ for (const LockStackItem& i : s1) {
if (i.first == mismatch.first) {
LogPrintf(" (1)"); /* Continued */
}
@@ -115,7 +115,7 @@ static void potential_deadlock_detected(const LockPair& mismatch, const LockStac
LogPrintf(" %s\n", i.second.ToString());
}
LogPrintf("Current lock order is:\n");
- for (const LockStackItem& i : s1) {
+ for (const LockStackItem& i : s2) {
if (i.first == mismatch.first) {
LogPrintf(" (1)"); /* Continued */
}