ebpf的主从同步实现,QPS测试与内存池QPS测试。

This commit is contained in:
1iaan
2026-01-30 16:00:06 +00:00
parent 2bdb48d63d
commit fbdcff6878
23 changed files with 599 additions and 383 deletions

View File

@@ -192,17 +192,17 @@ int slave_bootstrap(
printf("Sent SREADY to master\n");
// 6. 接收回包+OK\r\n
if (recv_exact(master_fd, resp, 5) < 0) {
fprintf(stderr, "Failed to receive final OK from master\n");
goto cleanup;
}
// if (recv_exact(master_fd, resp, 5) < 0) {
// fprintf(stderr, "Failed to receive final OK from master\n");
// goto cleanup;
// }
if (memcmp(resp, "+OK\r\n", 5) != 0) {
fprintf(stderr, "Unexpected final response from master: %.5s\n", resp);
goto cleanup;
}
// if (memcmp(resp, "+OK\r\n", 5) != 0) {
// fprintf(stderr, "Unexpected final response from master: %.5s\n", resp);
// goto cleanup;
// }
printf("Received final OK from master, bootstrap complete\n");
// printf("Received final OK from master, bootstrap complete\n");
ret = 0;