Closed cole-miller closed 2 months ago
Attention: Patch coverage is 85.88235%
with 24 lines
in your changes missing coverage. Please review.
Project coverage is 77.87%. Comparing base (
ee07596
) to head (3e7e544
). Report is 100 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
As discussed on MM I've pushed commits to remove the flags
argument to dqlite_node_create_v2
, which now uses disk mode exclusively. dqlite_node_enable_disk_mode
remains a no-op. This design removes ambiguity about when to migrate from one interface to another, makes the experimental nature of dqlite_node_create_v2
clearer, and leads to a better story for migrating to dqlite_node_create_v2
and eventually removing support fo removing the in-memory mode.
This PR removes the DQLITE_NEXT build configuration. Code for the new disk mode that was previously guarded by
#ifdef DQLITE_NEXT
can instead be selected at run time by calling the newdqlite_node_create_v2
function. At the raft level, this is supported by making the "format version" number a dynamic value instead of a compile-time constant and plumbing it around.Standalone version of the first part of #661, with the relevant review comments addressed (thanks @letFunny).
Signed-off-by: Cole Miller cole.miller@canonical.com