mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-02 16:56:53 +00:00
Fix an incorrect locking key and some previously-suppressed lock contention issues.
This commit is contained in:
1 parent
3e02c574e7
commit
eaa2060d84
3 files changed
+17
-31
No files matched your search
+2
-2
@@ -325,8 +325,8 @@ public class MessagesCacheTest extends AbstractRedisClusterTest {
|
||||
|
||||
messagesCache.addMessageAvailabilityListener(DESTINATION_UUID, DESTINATION_DEVICE_ID, listener);
|
||||
|
||||
messagesCache.lockQueueForPersistence(MessagesCache.getQueueName(DESTINATION_UUID, DESTINATION_DEVICE_ID));
|
||||
messagesCache.unlockQueueForPersistence(MessagesCache.getQueueName(DESTINATION_UUID, DESTINATION_DEVICE_ID));
|
||||
messagesCache.lockQueueForPersistence(DESTINATION_UUID, DESTINATION_DEVICE_ID);
|
||||
messagesCache.unlockQueueForPersistence(DESTINATION_UUID, DESTINATION_DEVICE_ID);
|
||||
|
||||
synchronized (notified) {
|
||||
while (!notified.get()) {
|
||||
|
||||
Reference in new issue
Block a user