Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Commit

Permalink
uv_truncate: call uvMaybeFireCloseCb when closing in barrier cb.
Browse files Browse the repository at this point in the history
This is for consistency with uvSnapshotPutBarrierCb where this is also
done.

Signed-off-by: Mathieu Borderé <mathieu.bordere@canonical.com>
  • Loading branch information
Mathieu Borderé committed Jul 6, 2023
1 parent 8ab42eb commit 54915d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/uv_truncate.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ static void uvTruncateBarrierCb(struct UvBarrierReq *barrier)
if (uv->closing) {
tracef("closing => don't truncate");
RaftHeapFree(truncate);
uvMaybeFireCloseCb(uv);
return;
}

Expand Down

0 comments on commit 54915d6

Please sign in to comment.