Skip to content

Commit

Permalink
compare the string not the enum
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Oct 17, 2007
1 parent 135fe63 commit 0206706
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -227,9 +227,9 @@ public boolean isInitialLoadComplete(String nodeId) {
throw new RuntimeException("The initial load has not been started for " + nodeId);
}
for (String status : statuses) {
if (Status.ER.equals(status)) {
if (Status.ER.name().equals(status)) {
throw new RuntimeException("The initial load errored out for " + nodeId);
} else if (Status.OK.equals(status)) {
} else if (Status.OK.name().equals(status)) {
returnValue = true;
} else {
return false;
Expand Down

0 comments on commit 0206706

Please sign in to comment.