Commit aaa2085
committed
source-postgres: Fix watchdog timeout error reporting
The intent of this logic was that if and only if the replication
streaming is interrupted by the "we really should have reached the
established fence by now" watchdog timeout, we ought to report an
appropriate error. But I was checking the cancellation cause on
the wrong context, so that wouldn't have worked as intended, and
also it turns out that `cancel(nil)` sets the cause to `Canceled`
so a bit more logic is required to turn that into a nil error
return from the streaming operation anyway.1 parent 36c3e02 commit aaa2085
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
348 | 348 | | |
349 | 349 | | |
350 | 350 | | |
| 351 | + | |
351 | 352 | | |
352 | 353 | | |
353 | 354 | | |
| |||
387 | 388 | | |
388 | 389 | | |
389 | 390 | | |
390 | | - | |
| 391 | + | |
391 | 392 | | |
392 | 393 | | |
393 | 394 | | |
394 | 395 | | |
395 | | - | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
396 | 400 | | |
397 | 401 | | |
398 | 402 | | |
| |||
0 commit comments