From 416bbe569f0e59f2e175279c1548eb07f0a795c2 Mon Sep 17 00:00:00 2001 From: hzcheng Date: Mon, 17 Feb 2020 06:12:56 +0000 Subject: [PATCH] more --- src/vnode/tsdb/inc/tsdb.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/vnode/tsdb/inc/tsdb.h b/src/vnode/tsdb/inc/tsdb.h index 2117c951ca..3842872910 100644 --- a/src/vnode/tsdb/inc/tsdb.h +++ b/src/vnode/tsdb/inc/tsdb.h @@ -18,6 +18,21 @@ typedef void tsdb_repo_t; // use void to hide implementation details from ou typedef int32_t table_id_t; // table ID type in this repository typedef int16_t tsdb_id_t; // TSDB repository ID +// Submit message +typedef struct { + int32_t numOfTables; + char data[]; +} SSubmitMsg; + +// Submit message for one table +typedef struct { + table_id_t tableId; // table ID to insert + int32_t sversion; // data schema version + int32_t numOfRows; // number of rows data + int64_t uid; // table UID to insert + char data[]; +} SSubmitBlock; + // Retention policy. typedef struct { // TODO: Need a more fancy description -- GitLab