已有数据同步功能完成
This commit is contained in:
@@ -26,11 +26,13 @@ extern mp_pool_t global_mempool;
|
||||
#endif
|
||||
|
||||
AppConfig global_cfg;
|
||||
iouring_ctx_t global_uring_ctx;
|
||||
|
||||
extern int global_oplog_fd;
|
||||
extern iouring_ctx_t global_uring_ctx;
|
||||
|
||||
void __completed_cmd(const uint8_t *cmd, size_t len){
|
||||
|
||||
}
|
||||
|
||||
int kvs_protocol(struct conn* conn){
|
||||
if (!conn) return -1;
|
||||
@@ -67,6 +69,9 @@ int kvs_protocol(struct conn* conn){
|
||||
|
||||
int dr = resp_dispatch(&cmd, &val);
|
||||
|
||||
__completed_cmd(p, len);
|
||||
|
||||
|
||||
/*
|
||||
* 语义建议:
|
||||
* - resp_dispatch() 即使返回 -1(比如 unknown command / wrong argc),
|
||||
|
||||
Reference in New Issue
Block a user