Skip to content

Commit

Permalink
Reset call depth counter if query is blocked
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinZakharov committed Jul 11, 2024
1 parent 95a52cc commit fa29629
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ public static AgentScope onEnter(
// if we can't get the connection for any reason
return null;
} catch (BlockingException e) {
CallDepthThreadLocalMap.reset(Statement.class);
// re-throw blocking exceptions
throw e;
} catch (Throwable e) {
Expand Down

0 comments on commit fa29629

Please sign in to comment.