Skip to content

Commit

Permalink
don't remove last logunit, fixes #24
Browse files Browse the repository at this point in the history
  • Loading branch information
no2chem committed May 21, 2015
1 parent d55ec87 commit 88919d0
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ public CorfuDBView getNewView(CorfuDBView oldView, NetworkException e) {
{
for (List<IServerProtocol> nodeList : segment.getGroups())
{
nodeList.removeIf(n ->n.getFullString().equals(e.protocol.getFullString()));
if (nodeList.size() > 1) {
nodeList.removeIf(n -> n.getFullString().equals(e.protocol.getFullString()));
}
}
}

Expand Down

0 comments on commit 88919d0

Please sign in to comment.