Commit 680e2fc4 authored by Tigran Mkrtchyan's avatar Tigran Mkrtchyan
Browse files

dlm: fix object to key calculation mismatch

we must always use the same method when a binary object converted into
a String key used as lock identifier.

Acked-by: Lea Morschel
Acked-by: Albert Rossi
Acked-by: Paul Millar
Target: master
parent 0659601a
/*
* Copyright (c) 2017 - 2018 Deutsches Elektronen-Synchroton,
* Copyright (c) 2017 - 2020 Deutsches Elektronen-Synchroton,
* Member of the Helmholtz Association, (DESY), HAMBURG, GERMANY
*
* This library is free software; you can redistribute it and/or modify
......@@ -64,7 +64,7 @@ public class DistributedLockManager extends AbstractLockManager {
@Override
protected Lock getObjectLock(byte[] objId) {
String key = BaseEncoding.base16().upperCase().encode(objId);
String key = objIdToKey(objId);
return new Lock() {
@Override
public void lock() {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment