From 556a46f960fb81bb78e8eff2cfcb355eb27f11f9 Mon Sep 17 00:00:00 2001 From: Hongze Cheng Date: Tue, 9 Nov 2021 16:27:11 +0800 Subject: [PATCH] refact --- include/server/vnode/vnode.h | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/include/server/vnode/vnode.h b/include/server/vnode/vnode.h index 58894ca957..94aefef003 100644 --- a/include/server/vnode/vnode.h +++ b/include/server/vnode/vnode.h @@ -46,8 +46,30 @@ void vnodeOptionsClear(SVnodeOptions *); /* ------------------------ STRUCT DEFINITIONS ------------------------ */ struct SVnodeOptions { - size_t wsize; + /** + * @brief write buffer size in BYTES + */ + uint64_t wsize; + + /** + * @brief time to live of tables in this vnode + * in SECONDS + */ + uint32_t ttl; + + /** + * @brief if time-series requests eventual consistency + */ + bool isWeak; + + /** + * @brief TSDB options + */ STsdbOptions tsdbOptions; + + /** + * @brief META operations + */ SMetaOptions metaOptions; // STqOptions tqOptions; // TODO };