Commit d64db70
replication: Ensure snapshot fiber joined in all code paths (#5171)
While replicating data through the incremental snapshot code path, if an
error occurs, the journal callback id is not set. When finalizing the
stream, this id is used to decide on early return.
In the error code path mentioned above, the snapshot fiber may end up
not being joined by the time the containing object is destroyed,
triggering an assertion (and generally leaving things in an inconsistent
state).
To avoid this even if journal callback id is 0, we still wait for the
snapshot fiber.
Signed-off-by: Abhijat Malviya <[email protected]>1 parent 28c2a0f commit d64db70
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
118 | 121 | | |
119 | 122 | | |
120 | 123 | | |
| |||
0 commit comments