From 0743d310d312982eee64a7b60d024a8f1d8b6179 Mon Sep 17 00:00:00 2001 From: Jeff Tao Date: Sat, 11 Apr 2020 16:34:40 +0800 Subject: [PATCH] add keep in walCfg --- src/inc/twal.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/inc/twal.h b/src/inc/twal.h index e90e2e54ce..06dc2e881b 100644 --- a/src/inc/twal.h +++ b/src/inc/twal.h @@ -36,12 +36,13 @@ typedef struct { typedef struct { int8_t commitLog; // commitLog int8_t wals; // number of WAL files; + int8_t keep; // keep the wal file when closed } SWalCfg; typedef void* twalh; // WAL HANDLE typedef int (*FWalWrite)(void *ahandle, void *pHead, int type); -twalh walOpen(const char *path, const SWalCfg *pCfg); +twalh walOpen(const char *path, const SWalCfg *pCfg); void walClose(twalh); int walRenew(twalh); int walWrite(twalh, SWalHead *); -- GitLab