02a4a22b9c0e22c2e7dd6ec85edd5c5a167fe19f
Files Diff
- Added: 1
- Removed: 0
- Renamed: 0
- Modified: 8
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Method | 1 | ||
Rename Method public storagespaceConsumedNoReplication(lastSnapshotId int) : long renamed to public storagespaceConsumed(bsp BlockStoragePolicy) : QuotaCounts in class org.apache.hadoop.hdfs.server.namenode.INodeFile | From | To | |
Move And Inline Method | 1 | ||
Move And Inline Method public storagespaceConsumed() : long moved from class org.apache.hadoop.hdfs.server.namenode.INodeFile to class org.apache.hadoop.hdfs.server.namenode.snapshot.FileWithSnapshotFeature & inlined to public updateQuotaAndCollectBlocks(bsps BlockStoragePolicySuite, file INodeFile, removed FileDiff, collectedBlocks BlocksMapUpdateInfo, removedINodes List<INode>) : QuotaCounts | From | To | |
Change Parameter Type | 1 | ||
Change Parameter Type lastSnapshotId : int to bsp : BlockStoragePolicy in method public storagespaceConsumed(bsp BlockStoragePolicy) : QuotaCounts in class org.apache.hadoop.hdfs.server.namenode.INodeFile | From | To | |
Inline Method | 1 | ||
Inline Method public storagespaceConsumedNoReplication() : long inlined to public storagespaceConsumed(bsp BlockStoragePolicy) : QuotaCounts in class org.apache.hadoop.hdfs.server.namenode.INodeFile | From | To | |
Rename Variable | 2 | ||
Rename Variable ssDelta : long to current : QuotaCounts in method public updateQuotaAndCollectBlocks(bsps BlockStoragePolicySuite, file INodeFile, removed FileDiff, collectedBlocks BlocksMapUpdateInfo, removedINodes List<INode>) : QuotaCounts in class org.apache.hadoop.hdfs.server.namenode.snapshot.FileWithSnapshotFeature | From | To | |
Rename Variable removed : boolean to uc : BlockInfoContiguousUnderConstruction in method package unprotectedRemoveBlock(path String, iip INodesInPath, fileNode INodeFile, block Block) : boolean in class org.apache.hadoop.hdfs.server.namenode.FSDirectory | From | To | |
Change Return Type | 2 | ||
Change Return Type long to QuotaCounts in method public storagespaceConsumed(bsp BlockStoragePolicy) : QuotaCounts in class org.apache.hadoop.hdfs.server.namenode.INodeFile | From | To | |
Change Return Type boolean to BlockInfoContiguousUnderConstruction in method package removeLastBlock(oldblock Block) : BlockInfoContiguousUnderConstruction in class org.apache.hadoop.hdfs.server.namenode.INodeFile | From | To | |
Change Variable Type | 3 | ||
Change Variable Type removed : boolean to uc : BlockInfoContiguousUnderConstruction in method package unprotectedRemoveBlock(path String, iip INodesInPath, fileNode INodeFile, block Block) : boolean in class org.apache.hadoop.hdfs.server.namenode.FSDirectory | From | To | |
Change Variable Type allBlocks : Set<Block> to allBlocks : Set<BlockInfoContiguous> in method public storagespaceConsumed(bsp BlockStoragePolicy) : QuotaCounts in class org.apache.hadoop.hdfs.server.namenode.INodeFile | From | To | |
Change Variable Type ssDelta : long to current : QuotaCounts in method public updateQuotaAndCollectBlocks(bsps BlockStoragePolicySuite, file INodeFile, removed FileDiff, collectedBlocks BlocksMapUpdateInfo, removedINodes List<INode>) : QuotaCounts in class org.apache.hadoop.hdfs.server.namenode.snapshot.FileWithSnapshotFeature | From | To | |
Extract And Move Method | 1 | ||
Extract And Move Method package computeQuotaDeltaForTruncate(newLength long, bsps BlockStoragePolicy, delta QuotaCounts) : void extracted from private verifyQuotaForTruncate(iip INodesInPath, file INodeFile, newLength long, delta QuotaCounts) : void in class org.apache.hadoop.hdfs.server.namenode.FSDirectory & moved to class org.apache.hadoop.hdfs.server.namenode.INodeFile | From | To | |
Rename Parameter | 1 | ||
Rename Parameter lastSnapshotId : int to bsp : BlockStoragePolicy in method public storagespaceConsumed(bsp BlockStoragePolicy) : QuotaCounts in class org.apache.hadoop.hdfs.server.namenode.INodeFile | From | To |