Skip to content

Commit

Permalink
postgres: refactor error handling to fix retrying
Browse files Browse the repository at this point in the history
prior to this change, many of the functions in the ExecTx callback would
wrap the error before returning it. this made it impossible to check
for the error code.

instead, the error wrapping has been moved to be external to the
`ExecTx` callback, so that the error code can be checked and
serialization failures can be retried.
  • Loading branch information
vito committed Nov 20, 2018
1 parent 5d67da1 commit 587081a
Show file tree
Hide file tree
Showing 2 changed files with 152 additions and 88 deletions.
Loading

0 comments on commit 587081a

Please sign in to comment.