Skip to content

Commit

Permalink
Merge pull request #697 from cole-miller/leader-pseudo-coroutines
Browse files Browse the repository at this point in the history
Refactor leader.c to fix stack growth in handle_exec_sql
  • Loading branch information
cole-miller authored Oct 15, 2024
2 parents 014aece + 06992a6 commit e80eada
Show file tree
Hide file tree
Showing 16 changed files with 536 additions and 483 deletions.
1 change: 0 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ basic_dqlite_sources = \
src/format.c \
src/fsm.c \
src/gateway.c \
src/id.c \
src/leader.c \
src/lib/addr.c \
src/lib/buffer.c \
Expand Down
3 changes: 1 addition & 2 deletions src/conn.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,6 @@ int conn__start(struct conn *c,
struct raft *raft,
struct uv_stream_s *stream,
struct raft_uv_transport *uv_transport,
struct id_state seed,
conn_close_cb close_cb)
{
int rv;
Expand All @@ -311,7 +310,7 @@ int conn__start(struct conn *c,
c->transport.data = c;
c->uv_transport = uv_transport;
c->close_cb = close_cb;
gateway__init(&c->gateway, config, registry, raft, seed);
gateway__init(&c->gateway, config, registry, raft);
rv = buffer__init(&c->read);
if (rv != 0) {
goto err_after_transport_init;
Expand Down
2 changes: 0 additions & 2 deletions src/conn.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include "lib/transport.h"

#include "gateway.h"
#include "id.h"
#include "message.h"
#include "raft.h"

Expand Down Expand Up @@ -50,7 +49,6 @@ int conn__start(struct conn *c,
struct raft *raft,
struct uv_stream_s *stream,
struct raft_uv_transport *uv_transport,
struct id_state seed,
conn_close_cb close_cb);

/**
Expand Down
Loading

0 comments on commit e80eada

Please sign in to comment.