Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
binlijin committed Oct 21, 2019
1 parent 56fd035 commit 9d0b862
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1580,7 +1580,6 @@ public static void splitRegion(Connection connection, RegionInfo parent, long pa
Put putParent = makePutFromRegionInfo(RegionInfoBuilder.newBuilder(parent)
.setOffline(true)
.setSplit(true).build(), time);
addRegionStateToPut(putParent, State.SPLIT);
addDaughtersToPut(putParent, splitA, splitB);

// Puts for daughters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ boolean include(final RegionStateNode node, final boolean offline) {
if (node.isInState(State.SPLIT)) return false;
if (node.isInState(State.OFFLINE) && !offline) return false;
final RegionInfo hri = node.getRegionInfo();
if (hri.isSplit()) return false;
return (!hri.isOffline() && !hri.isSplit()) ||
((hri.isOffline() || hri.isSplit()) && offline);
}
Expand Down

0 comments on commit 9d0b862

Please sign in to comment.