Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor leader.c to fix stack growth in handle_exec_sql #697

Merged
merged 13 commits into from
Oct 15, 2024
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
Loading