Skip to content

Commit

Permalink
Close the raft_io implementation
Browse files Browse the repository at this point in the history
Signed-off-by: Cole Miller <[email protected]>
  • Loading branch information
cole-miller committed Feb 22, 2024
1 parent b9c3dbe commit 7bd9e7f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,12 @@ void dqlite__close(struct dqlite_node *d)
rv = sem_destroy(&d->handover_done);
(void)rv;
fsm__close(&d->raft_fsm);
// TODO assert rv of uv_loop_close after fixing cleanup logic related to
// the TODO above referencing the cleanup logic without running the
// node. See https://github.com/canonical/dqlite/issues/504.
uv_loop_close(&d->loop);
raft_uv_close(&d->raft_io);
raftProxyClose(&d->raft_transport);
/* TODO assert rv of uv_loop_close after fixing cleanup logic related to
* the TODO above referencing the cleanup logic without running the
* node. See https://github.com/canonical/dqlite/issues/504. */
uv_loop_close(&d->loop);
registry__close(&d->registry);
sqlite3_vfs_unregister(&d->vfs);
VfsClose(&d->vfs);
Expand Down

0 comments on commit 7bd9e7f

Please sign in to comment.