KVstorageBaseRaft-cpp icon indicating copy to clipboard operation
KVstorageBaseRaft-cpp copied to clipboard

【代码随想录知识星球】项目分享-基于Raft的k-v存储数据库

Results 24 KVstorageBaseRaft-cpp issues
Sort by recently updated
recently updated
newest added

`yzz@yzz:~/home/raftKV/KVstorageBaseRaft-cpp/bin$ ls callerMain consumer provider raftCoreRun test.conf yzz@yzz:~/home/raftKV/KVstorageBaseRaft-cpp/bin$ cd .. yzz@yzz:~/home/raftKV/KVstorageBaseRaft-cpp$ ls bin cmake-build-remotedebug docs format.sh main.cpp src tmp cmake-build-debug-remote-host CMakeLists.txt example lib README.md test yzz@yzz:~/home/raftKV/KVstorageBaseRaft-cpp$ cd bin yzz@yzz:~/home/raftKV/KVstorageBaseRaft-cpp/bin$ ls...

![微信图片_20240607164345](https://github.com/youngyangyang04/KVstorageBaseRaft-cpp/assets/107487384/6ceea5af-7f3b-44cc-9d3e-1d5982b9e51d) 是不是没用到格式化字符串,后面调用myAssert的时候输出的是不是就只有可变长度的参数信息,而不是包含格式化字符串以及可变长度的参数

bug
good first issue

error: cannot pass object of non-trivial type 'std::basic_string' through variadic function; call will abort at runtime [-Wnon-pod-varargs] int size_s = std::snprintf(nullptr, 0, format_str, args...) + 1; // "\0" 我在make时候遇到了这个错误,gpt解释是snprinf不能接受非平凡类型,args无法提供保证。提供给我的解决方案是把args先转成string再转成const char*。修改后完成了编译...

在星球项目描述里:“实现Raft协议的心跳与选举机制,通过定时线程池触发心跳与选举任务,并维护集群的日志提交状态”,想问下定时线程池是在哪里实现的,体现在哪里呀?谢谢~