Details
-
Bug
-
Status: Patch Available
-
Major
-
Resolution: Unresolved
-
3.2.0
-
None
-
None
Description
When DirectoryScanner used diff ScanInfo to check and update with memBlock, i found the LocalReplica#updateWithReplica only update the diskfile path but without replicaInfo's volume. And may be the memblock ' volume is diff with the diskfile path before directory scan, so i think need to update the volume meanwhile,so the replicaInfo's meminfo is consistent with disk storage。The relation code as follows:
public void updateWithReplica(StorageLocation replicaLocation) { // for local replicas, the replica location is assumed to be a file. File diskFile = null; try { diskFile = new File(replicaLocation.getUri()); } catch (IllegalArgumentException e) { diskFile = null; } if (null == diskFile) { setDirInternal(null); } else { setDirInternal(diskFile.getParentFile()); } }
Thanks all!