diff --git a/bycorf b/bycorf index a430b323b..4b10a34e8 160000 --- a/bycorf +++ b/bycorf @@ -1 +1 @@ -Subproject commit a430b323b65c61467a552d0f908aca0790e1cb99 +Subproject commit 4b10a34e8eff7d991018454a682019773e3a112e diff --git a/docs/architecture/01-overview.md b/docs/architecture/01-overview.md index b41e80fd8..b3f7466a0 100644 --- a/docs/architecture/01-overview.md +++ b/docs/architecture/01-overview.md @@ -36,7 +36,10 @@ start. The default build includes only Linux TCP and io_uring. The opt-in `LAVIK_KERNEL_BYPASS` build includes DPDK and SPDK together; it does not activate them. Startup defaults remain Linux TCP and io_uring, including for the Meta control plane. Each worker owns one io_uring shared by kernel -network/storage I/O, timers and wakeups; the DPDK adapter borrows that ring. +network/storage I/O, timers and wakeups. Its `NetBackend` and `StorageBackend` +adapters borrow that ring and independently encapsulate network and storage +backend selection; the DPDK adapter also borrows it. The worker initializes the +ring before the adapters and stops both adapters before shutting down the ring. The optional DPDK network backend serves plaintext IPv4 TCP through Bycorf's private FreeBSD stack while preserving the same RESP stream interface and worker ownership. Software packet forwarding diff --git a/include/lavik/command_args.h b/include/lavik/command_args.h index 705d01e59..a0fc2be97 100644 --- a/include/lavik/command_args.h +++ b/include/lavik/command_args.h @@ -399,7 +399,8 @@ class CommandArgsHandle { Get().assign(first, last); } template - void insert(CommandArgsView::Iterator pos, Iterator first, Iterator last) { + void insert([[maybe_unused]] CommandArgsView::Iterator pos, Iterator first, + Iterator last) { // Synthesis only appends; arbitrary insertion would invalidate offsets and // borrow semantics. Rewriters build an independent command instead. assert(pos == end()); diff --git a/src/redis/lua_eval.h b/src/redis/lua_eval.h index 8930714f2..577592a93 100644 --- a/src/redis/lua_eval.h +++ b/src/redis/lua_eval.h @@ -75,7 +75,7 @@ struct LuaExecutionStep { std::string reply_; CommandOutcome outcome_{}; // Newly constructed errors only; forwarded child errors were already counted. - std::vector errors_; + std::vector errors_{}; bool scheduler_yield_ = false; }; diff --git a/src/redis/server.cpp b/src/redis/server.cpp index 92f0ca028..5e12e271b 100644 --- a/src/redis/server.cpp +++ b/src/redis/server.cpp @@ -57,6 +57,7 @@ #if BYCORF_KERNEL_BYPASS #include "bycorf/io/dpdk_backend.h" #endif +#include "bycorf/io/spdk_storage.h" #include "bycorf/net/server.h" #include "bycorf/net/tcp_service.h" #include "bycorf/net/tcp_stream.h"