|
@@ -3065,7 +3065,6 @@ class FSNamesystem implements FSConstants, FSNamesystemMBean {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- decrementSafeBlockCount(block);
|
|
|
//
|
|
|
// It's possible that the block was removed because of a datanode
|
|
|
// failure. If the block is still valid, check if replication is
|
|
@@ -3074,6 +3073,7 @@ class FSNamesystem implements FSConstants, FSNamesystemMBean {
|
|
|
//
|
|
|
INode fileINode = blocksMap.getINode(block);
|
|
|
if (fileINode != null) {
|
|
|
+ decrementSafeBlockCount(block);
|
|
|
updateNeededReplications(block, -1, 0);
|
|
|
}
|
|
|
|