Skip to content

Commit c93a0ce

Browse files
committed
fix build error
1 parent 3ca9fec commit c93a0ce

File tree

1 file changed

+2
-2
lines changed
  • hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement

1 file changed

+2
-2
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2131,7 +2131,7 @@ int scheduleReconstructionWorkForBlocks(int blocksToProcess, boolean resetIterat
21312131
// Step 1: categorize at-risk blocks into replication and EC tasks
21322132
try {
21332133
synchronized (neededReconstruction) {
2134-
for (; blocksToProcess > 0 && priority < neededReconstruction.LEVEL; priority++) {
2134+
for (; blocksToProcess > 0 && priority < LowRedundancyBlocks.LEVEL; priority++) {
21352135
List<BlockInfo> blocks = new ArrayList<>();
21362136
int processed = neededReconstruction.
21372137
chooseLowRedundancyBlocksForPriority(priority, blocksToProcess, blocks);
@@ -2151,7 +2151,7 @@ int scheduleReconstructionWorkForBlocks(int blocksToProcess, boolean resetIterat
21512151
} finally {
21522152
namesystem.writeUnlock("generateReconstructionWorkForBlocks");
21532153
}
2154-
if (priority == LEVEL || resetIterators) {
2154+
if (priority == LowRedundancyBlocks.LEVEL || resetIterators) {
21552155
// Reset all bookmarks because there were no recently added blocks.
21562156
neededReconstruction.resetIterators();
21572157
}

0 commit comments

Comments
 (0)