refact
This commit is contained in:
parent
c8ee7ba9a7
commit
495ea995ea
|
@ -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);
|
||||||
|
|
|
@ -23,6 +23,7 @@ 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 */
|
||||||
|
uint64_t reqVersion = 0; /* TODO */
|
||||||
int code = 0;
|
int code = 0;
|
||||||
|
|
||||||
// Copy the request to vnode buffer
|
// Copy the request to vnode buffer
|
||||||
|
|
Loading…
Reference in New Issue