Add client trace lines and fix random client first-operation bug

Add logging infrastructure to client.c mirroring the server's node_log
pattern, with trace lines for: init, async put/get/delete, begin
transfers, replay requests, all received message types (store ack, fetch
chunk response, redirect, reply, get blob response), disconnects, and
unexpected messages.

Add result/operation trace lines to random_client.c and fix a bug where
the random client never started its first operation (the condition
`result.type != TOASTYFS_RESULT_VOID` was always false on the first
tick since no operation was pending).

https://claude.ai/code/session_0184gHjra7fsmSPZ4kppaGhC
This commit is contained in:
Claude
2026-02-21 13:41:22 +00:00
parent ab2ee3fe3b
commit 6e60b41f1b
3 changed files with 104 additions and 3 deletions
+1
View File
@@ -11,6 +11,7 @@
typedef struct {
ToastyFS *tfs;
bool started;
} RandomClient;
struct pollfd;