This commit is contained in:
Hongze Cheng 2021-11-08 10:32:36 +08:00
parent d5af05860e
commit 8b608cd3b7
3 changed files with 16 additions and 2 deletions

View File

@ -17,6 +17,7 @@
#define _TD_VNODE_IMPL_H_
#include "os.h"
#include "trequest.h"
#include "meta.h"
#include "tq.h"

View File

@ -30,6 +30,10 @@ typedef struct SVnodeOptions SVnodeOptions;
SVnode *vnodeOpen(const char *path, const SVnodeOptions *pVnodeOptions);
void vnodeClose(SVnode *pVnode);
void vnodeDestroy(const char *path);
int vnodeProcessWriteReqs(SVnode *pVnode, SReqBatch *pReqBatch);
int vnodeApplyWriteReqs(SVnode *pVnode, SReqBatch *pReqBatch);
int vnodeProcessReadReq(SVnode *pVnode, SRequest *pReq);
int vnodeProcessSyncReq(SVnode *pVnode, SRequest *pReq);
/* ------------------------ SVnodeOptions ------------------------ */
void vnodeOptionsInit(SVnodeOptions *);

View File

@ -13,5 +13,14 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#define _DEFAULT_SOURCE
#include "vnodeWrite.h"
#include "vnodeDef.h"
int vnodeProcessWriteReqs(SVnode *pVnode, SReqBatch *pReqBatch) {
/* TODO */
return 0;
}
int vnodeApplyWriteReqs(SVnode *pVnode, SReqBatch *pReqBatch) {
/* TODO */
return 0;
}