Skip to content

Commit

Permalink
Merge pull request #187 from DSL-UMD/distributed
Browse files Browse the repository at this point in the history
[FIX] reloading from db to cache
  • Loading branch information
gangliao authored Sep 23, 2019
2 parents 57c272b + 3611f92 commit 83eb471
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,9 @@ public boolean removeChild(INode child, int latestSnapshotId) {
* @return true if the child is removed; false if the child is not found.
*/
public boolean removeChild(final INode child) {
if (children.isEmpty()) {
return true;
}
return children.remove(child.getId());
}

Expand Down

0 comments on commit 83eb471

Please sign in to comment.