|
@@ -676,6 +676,9 @@ public class OtcTradeOrderServiceImpl implements OtcTradeOrderService {
|
|
|
voyageApi.reduceStock(reqDTO);
|
|
voyageApi.reduceStock(reqDTO);
|
|
|
}
|
|
}
|
|
|
} finally {
|
|
} finally {
|
|
|
|
|
+ if (unlockRegistered) {
|
|
|
|
|
+ unlockStockLock(stockLock, stockLockKey);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
Map<String, Object> extMap = new HashMap<>();
|
|
Map<String, Object> extMap = new HashMap<>();
|
|
@@ -1549,7 +1552,9 @@ public class OtcTradeOrderServiceImpl implements OtcTradeOrderService {
|
|
|
voyageApi.reduceStock(reqDTO);
|
|
voyageApi.reduceStock(reqDTO);
|
|
|
}
|
|
}
|
|
|
} finally {
|
|
} finally {
|
|
|
-
|
|
|
|
|
|
|
+ if (unlockRegistered) {
|
|
|
|
|
+ unlockStockLock(stockLock, stockLockKey);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@@ -2697,6 +2702,9 @@ public class OtcTradeOrderServiceImpl implements OtcTradeOrderService {
|
|
|
if (lock.isHeldByCurrentThread() && lock.isLocked()) {
|
|
if (lock.isHeldByCurrentThread() && lock.isLocked()) {
|
|
|
lock.unlock();
|
|
lock.unlock();
|
|
|
}
|
|
}
|
|
|
|
|
+ if (!stockUnlockRegistered) {
|
|
|
|
|
+ unlockStockLock(stockLock, stockLockKey);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -3211,6 +3219,9 @@ public class OtcTradeOrderServiceImpl implements OtcTradeOrderService {
|
|
|
if (lock.isHeldByCurrentThread() && lock.isLocked()) {
|
|
if (lock.isHeldByCurrentThread() && lock.isLocked()) {
|
|
|
lock.unlock();
|
|
lock.unlock();
|
|
|
}
|
|
}
|
|
|
|
|
+ if (!stockUnlockRegistered) {
|
|
|
|
|
+ unlockStockLock(stockLock, stockLockKey);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|