Skip to content

Commit

Permalink
prevent database deadlocks #6846 #6865 #7020
Browse files Browse the repository at this point in the history
  • Loading branch information
pdurbin committed Jun 26, 2020
1 parent b97185a commit f5d7a61
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,11 @@ public Dataset execute(CommandContext ctxt) throws CommandException {

@Override
public boolean onSuccess(CommandContext ctxt, Object r) {
// This sleep is an attempt to avoid database deadlocks.
try {
Thread.sleep(3000);
} catch (InterruptedException ex) {
}
boolean retVal = true;
Dataset dataset = null;
try{
Expand Down

0 comments on commit f5d7a61

Please sign in to comment.