You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 <abhijat@dragonflydb.io>
0 commit comments