Browse Source

convert from storage-core memoryType to storage-wrapper memoryType

21411
Roberto Cirillo 8 months ago
parent
commit
9c493501f8
  1. 2
      src/main/java/org/gcube/datatransfer/resolver/services/StorageIDResolver.java

2
src/main/java/org/gcube/datatransfer/resolver/services/StorageIDResolver.java

@ -340,7 +340,7 @@ public class StorageIDResolver {
* @return the storage client instance
*/
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");
return storageManagerClient;
}else {

Loading…
Cancel
Save