Skip to content

Commit

Permalink
Throwing exception upon transaction failure to make write as failure
Browse files Browse the repository at this point in the history
  • Loading branch information
sumanthpasupuleti authored and sumanth-pasupuleti committed Jan 21, 2019
1 parent c7214ff commit 63882aa
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,12 @@ public String writeSingle(String key) throws Exception
connection.rollback(sp);
} else if(releaseAttempted) {
connection.close();
return ResultAmbiguous;
// ResultAmbiguous;
throw e;
} else {
connection.close();
return ResultFailed;
// ResultFailed;
throw e;
}
}
}
Expand Down

0 comments on commit 63882aa

Please sign in to comment.