This commit is contained in:
Hongze Cheng 2021-11-09 15:10:08 +08:00
parent c8ee7ba9a7
commit 495ea995ea
2 changed files with 6 additions and 4 deletions

View File

@ -25,7 +25,8 @@ extern "C" {
typedef struct {
int nexta;
int enda;
SMemAllocator *allocators[3];
SMemAllocator *free[3];
SMemAllocator *used[3];
} SVAllocatorPool;
int vnodeOpenAllocatorPool(SVnode *pVnode);

View File

@ -23,6 +23,7 @@ int vnodeProcessWriteReqs(SVnode *pVnode, SReqBatch *pReqBatch) {
int vnodeApplyWriteRequest(SVnode *pVnode, const SRequest *pRequest) {
int reqType; /* TODO */
size_t reqSize; /* TODO */
uint64_t reqVersion = 0; /* TODO */
int code = 0;
// Copy the request to vnode buffer