refactor tq

This commit is contained in:
Liu Jicong 2022-02-14 13:38:01 +08:00
parent 29bc056abf
commit 8d243f7758
2 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ if(${BUILD_TEST})
endif(${BUILD_TEST})
add_subdirectory(source)
add_subdirectory(tools)
#add_subdirectory(tests)
add_subdirectory(tests)
add_subdirectory(example)
# docs

View File

@ -37,7 +37,7 @@ extern "C" {
typedef struct STQ STQ;
// memory allocator supported by vnode
// memory allocator provided by vnode
typedef struct STqMemRef {
SMemAllocatorFactory* pAllocatorFactory;
SMemAllocator* pAllocator;
@ -51,7 +51,7 @@ void tqCleanUp();
STQ* tqOpen(const char* path, SWal* pWal, SMeta* pMeta, STqCfg* tqConfig, SMemAllocatorFactory* allocFac);
void tqClose(STQ*);
// void* will be replace by a msg type
// required by vnode
int tqPushMsg(STQ*, void* msg, int64_t version);
int tqCommit(STQ*);