Skip to content

Commit

Permalink
core: change lock message of disks being downloaded
Browse files Browse the repository at this point in the history
We changed the lock of disks that are being downloaded to be a shared
lock instead of an exclusive lock. Here we change the message that is
associated with this lock to be the same as the one we use for the
exclusive lock we take during upload-disk, which is more informative.
  • Loading branch information
ahadas committed Jun 24, 2022
1 parent 6c7f72b commit 139c86d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ protected Map<String, Pair<String, String>> getSharedLocks() {

if (getDiskImage() != null && getParameters().getTransferType() == TransferType.Download) {
locks.put(getDiskImage().getId().toString(),
LockMessagesMatchUtil.makeLockingPair(LockingGroup.DISK, EngineMessage.ACTION_TYPE_FAILED_DISK_IS_LOCKED));
LockMessagesMatchUtil.makeLockingPair(LockingGroup.DISK, getDiskIsBeingTransferredLockMessage()));
}

return locks;
Expand Down

0 comments on commit 139c86d

Please sign in to comment.