Skip to content

Commit

Permalink
roll back and make secondary if mount fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
Neil Soman committed Jan 9, 2012
1 parent 6f45295 commit f21aa0d
Showing 1 changed file with 8 additions and 1 deletion.
Expand Up @@ -303,7 +303,14 @@ public void becomeMaster() throws EucalyptusCloudException, ExecutionException {
}
//mount
if(!isMounted()) {
mountPrimary();
try {
mountPrimary();
} catch(Exception e) {
//undo
if(isPrimary()) {
makeSecondary();
}
}
}
//verify state
if(!isPrimary()) {
Expand Down

0 comments on commit f21aa0d

Please sign in to comment.