Skip to content

Commit

Permalink
Re-introduce dqlite_node_enable_disk_mode as no-op
Browse files Browse the repository at this point in the history
This lets us avoid breaking the go-dqlite build.

Partially reverts commit 7cf8728.

Signed-off-by: Cole Miller <[email protected]>
  • Loading branch information
cole-miller committed Aug 1, 2024
1 parent ad92843 commit eb820ef
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/dqlite.h
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,12 @@ DQLITE_API int dqlite_node_set_snapshot_params(dqlite_node *n,
*/
DQLITE_API int dqlite_node_set_block_size(dqlite_node *n, size_t size);

/**
* This function was formerly used to request that database and WAL files be
* stored on disk, but is now a no-op. It is deprecated.
*/
DQLITE_API int dqlite_node_enable_disk_mode(dqlite_node *n);

/**
* Set the target number of voting nodes for the cluster.
*
Expand Down
6 changes: 6 additions & 0 deletions src/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,12 @@ int dqlite_node_set_block_size(dqlite_node *n, size_t size)
return 0;
}

int dqlite_node_enable_disk_mode(dqlite_node *n)
{
(void)n;
return 0;
}

static int maybeBootstrap(dqlite_node *d,
dqlite_node_id id,
const char *address)
Expand Down

0 comments on commit eb820ef

Please sign in to comment.