replace MyFile with RequestObject obj
This commit is contained in:
parent
bbfabd37d9
commit
423a69b52a
|
@ -315,8 +315,8 @@ public class MongoOperationManager extends TransportManager{
|
|||
public boolean exist(String remotePath){
|
||||
boolean isPresent=false;
|
||||
if(logger.isDebugEnabled())
|
||||
logger.debug("MongoDB - get Size for pathServer: "+remotePath);
|
||||
GridFSDBFile f = mongoPrimaryInstance.retrieveRemoteDescriptor(remotePath, null, true);
|
||||
logger.debug("MongoDB - check if file exist: "+remotePath);
|
||||
GridFSDBFile f = mongoPrimaryInstance.retrieveRemoteDescriptor(remotePath, null, false);
|
||||
if(f!=null){
|
||||
isPresent=true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue