Fix for:
CID
1297875 (#1 of 1): Arguments in wrong order (SWAPPED_ARGUMENTS)
swapped_arguments: The positions of arguments in the call to
do_lock_remove do not match the ordering of the parameters:
lock_cookie is passed to client
lock_client is passed to cookie
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
break;
case OPT_LOCK_REMOVE:
- r = do_lock_remove(image, lock_cookie, lock_client);
+ r = do_lock_remove(image, lock_client, lock_cookie);
if (r < 0) {
cerr << "rbd: releasing lock failed: " << cpp_strerror(r) << std::endl;
return -r;