未验证 提交 05c07ba6 编写于 作者: L Liu Jicong 提交者: GitHub

tq (#8416)

add tq header
上级 0acfddf3
...@@ -18,6 +18,7 @@ mac/ ...@@ -18,6 +18,7 @@ mac/
.mypy_cache .mypy_cache
*.tmp *.tmp
*.swp *.swp
*.orig
src/connector/nodejs/node_modules/ src/connector/nodejs/node_modules/
src/connector/nodejs/out/ src/connector/nodejs/out/
tests/test/ tests/test/
......
...@@ -58,9 +58,9 @@ void walStop(twalh); ...@@ -58,9 +58,9 @@ void walStop(twalh);
void walClose(twalh); void walClose(twalh);
//write //write
int64_t walWriteWithMsgType(twalh, int8_t msgType, void* body, int32_t bodyLen); //int64_t walWriteWithMsgType(twalh, int8_t msgType, void* body, int32_t bodyLen);
int64_t walWrite(twalh, void* body, int32_t bodyLen); int64_t walWrite(twalh, void* body, int32_t bodyLen);
int64_t walWriteBatch(twalh, void* body, int32_t* bodyLen, int32_t batchSize); int64_t walWriteBatch(twalh, void** bodies, int32_t* bodyLen, int32_t batchSize);
//apis for lifecycle management //apis for lifecycle management
void walFsync(twalh, bool force); void walFsync(twalh, bool force);
......
...@@ -59,13 +59,27 @@ int tqOpenTGroup(STQ* pTq, const char* topic, int cgId) { ...@@ -59,13 +59,27 @@ int tqOpenTGroup(STQ* pTq, const char* topic, int cgId) {
/*int tqCloseTCGroup(STQ* pTq, const char* topic, int cgId) {*/ /*int tqCloseTCGroup(STQ* pTq, const char* topic, int cgId) {*/
/*tqGroupHandle* handle = tqLookupGroupHandle(pTq, topic, cgId);*/ /*tqGroupHandle* handle = tqLookupGroupHandle(pTq, topic, cgId);*/
/*return tqCommitTCGroup(handle);*/ /*return tqCommitTCGroup(handle);*/
} /*}*/
int tqDropTCGroup(STQ* pTq, const char* topic, int cgId) { int tqDropTCGroup(STQ* pTq, const char* topic, int cgId) {
//delete from disk //delete from disk
return 0; return 0;
} }
int tqFetchMsg(tqGroupHandle* handle, void* msg) {
return 0;
}
int tqMoveOffsetToNext(tqGroupHandle* handle) {
return 0;
}
tqGroupHandle* tqFindGHandleBycId(STQ* pTq, int64_t cId) {
return NULL;
}
int tqPushMsg(STQ* pTq , void* p, int64_t version) { int tqPushMsg(STQ* pTq , void* p, int64_t version) {
//add reference //add reference
//judge and launch new query //judge and launch new query
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册