提交 495ea995 编写于 作者: H Hongze Cheng

refact

上级 c8ee7ba9
...@@ -25,7 +25,8 @@ extern "C" { ...@@ -25,7 +25,8 @@ extern "C" {
typedef struct { typedef struct {
int nexta; int nexta;
int enda; int enda;
SMemAllocator *allocators[3]; SMemAllocator *free[3];
SMemAllocator *used[3];
} SVAllocatorPool; } SVAllocatorPool;
int vnodeOpenAllocatorPool(SVnode *pVnode); int vnodeOpenAllocatorPool(SVnode *pVnode);
......
...@@ -21,9 +21,10 @@ int vnodeProcessWriteReqs(SVnode *pVnode, SReqBatch *pReqBatch) { ...@@ -21,9 +21,10 @@ int vnodeProcessWriteReqs(SVnode *pVnode, SReqBatch *pReqBatch) {
} }
int vnodeApplyWriteRequest(SVnode *pVnode, const SRequest *pRequest) { int vnodeApplyWriteRequest(SVnode *pVnode, const SRequest *pRequest) {
int reqType; /* TODO */ int reqType; /* TODO */
size_t reqSize; /* TODO */ size_t reqSize; /* TODO */
int code = 0; uint64_t reqVersion = 0; /* TODO */
int code = 0;
// Copy the request to vnode buffer // Copy the request to vnode buffer
SRequest *pReq = mMalloc(pVnode->inuse, reqSize); SRequest *pReq = mMalloc(pVnode->inuse, reqSize);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册