convert from storage-core memoryType to storage-wrapper memoryType

This commit is contained in:
Roberto Cirillo 2021-09-22 10:46:39 +02:00
parent b63ad74730
commit 9c493501f8
1 changed files with 1 additions and 1 deletions

View File

@ -340,7 +340,7 @@ public class StorageIDResolver {
* @return the storage client instance * @return the storage client instance
*/ */
protected static IClient getStorageClientInstance(MemoryType memory) { protected static IClient getStorageClientInstance(MemoryType memory) {
if ((!Objects.isNull(storageManagerClient)) && (storageManagerClient.getGcubeMemoryType().equals(memory))) { if ((!Objects.isNull(storageManagerClient)) && (storageManagerClient.getGcubeMemoryType().toString() == memory.toString())) {
LOG.debug("reusing the same storage-client object"); LOG.debug("reusing the same storage-client object");
return storageManagerClient; return storageManagerClient;
}else { }else {