Commit 3a3167a
Add defensive check for null timeout manager in waitForActionable
Summary:
Adds a defensive check in MysqlOperationImpl::waitForActionable() to gracefully fail if getTimeoutManager() returns null. This can happen during client shutdown when AsyncConnection::~AsyncConnection() schedules a reset operation, but the EventBase is already being destroyed.
Without this check, the operation would crash with an assertion failure in AsyncTimeout::scheduleTimeout() when it tries to use a null timeoutManager_. With this fix, the operation fails gracefully with OperationResult::Failed instead of crashing.
Reviewed By: rban1
Differential Revision: D94744809
fbshipit-source-id: 7c9d067b22d1ca84ad4386aedf7f864dc10fff3d1 parent 2b58747 commit 3a3167a
1 file changed
Lines changed: 7 additions & 0 deletions
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
64 | 71 | | |
65 | 72 | | |
66 | 73 | | |
| |||
0 commit comments