update to version 2.10.0-SNAPSHOT
added new input parameter to getSize method, for compatibility with s3 client plugin
This commit is contained in:
parent
abad3acc75
commit
c3fde07fc8
|
@ -1,5 +1,8 @@
|
|||
# Changelog for storage-manager-core
|
||||
|
||||
## [v2.10.0-SNAPSHOT]
|
||||
* added input parameter to getSize method in order to be compatible with the needed of s3 client
|
||||
|
||||
## [v2.9.0] 2019-10-19
|
||||
* SSL enabled
|
||||
|
2
pom.xml
2
pom.xml
|
@ -8,7 +8,7 @@
|
|||
</parent>
|
||||
<groupId>org.gcube.contentmanagement</groupId>
|
||||
<artifactId>storage-manager-core</artifactId>
|
||||
<version>2.9.0</version>
|
||||
<version>2.10.0-SNAPSHOT</version>
|
||||
<!-- <properties> -->
|
||||
<!-- <distroDirectory>${project.basedir}/distro</distroDirectory> -->
|
||||
<!-- </properties> -->
|
||||
|
|
|
@ -37,7 +37,7 @@ public class GetMetaFile extends Operation{
|
|||
String id=null;
|
||||
String mime=null;
|
||||
try {
|
||||
dim = tm.getSize(bucket);
|
||||
dim = tm.getSize(bucket, myFile);
|
||||
id=tm.getId(bucket, false);
|
||||
mime=tm.getFileProperty(bucket, "mimetype");
|
||||
myFile.setOwner(tm.getFileProperty(bucket, "owner"));
|
||||
|
|
|
@ -32,7 +32,7 @@ public class GetSize extends Operation{
|
|||
TransportManager tm=tmf.getTransport(backendType, myFile.getGcubeMemoryType(), dbNames, myFile.getWriteConcern(), myFile.getReadPreference());
|
||||
long dim=0;
|
||||
try {
|
||||
dim = tm.getSize(bucket);
|
||||
dim = tm.getSize(bucket, myFile);
|
||||
} catch (Exception e) {
|
||||
tm.close();
|
||||
throw new RemoteBackendException(" Error in GetSize operation ", e.getCause()); }
|
||||
|
|
|
@ -290,7 +290,7 @@ public class MongoOperationManager extends TransportManager{
|
|||
}
|
||||
|
||||
@Override
|
||||
public long getSize(String remotePath){
|
||||
public long getSize(String remotePath, MyFile file){
|
||||
long length=-1;
|
||||
if(logger.isDebugEnabled())
|
||||
logger.debug("MongoDB - get Size for pathServer: "+remotePath);
|
||||
|
|
Loading…
Reference in New Issue