From 18719691322059d1b47c7112b5fdc3f5555b3d8e Mon Sep 17 00:00:00 2001 From: Hongze Cheng Date: Thu, 14 Oct 2021 09:42:40 +0800 Subject: [PATCH] more --- source/server/vnode/tsdb/src/tsdb.c | 9 ++++----- source/server/vnode/tsdb/src/tsdbSMA.c | 14 ++++++++++++++ 2 files changed, 18 insertions(+), 5 deletions(-) create mode 100644 source/server/vnode/tsdb/src/tsdbSMA.c diff --git a/source/server/vnode/tsdb/src/tsdb.c b/source/server/vnode/tsdb/src/tsdb.c index 7fbb0a6868..520c342a63 100644 --- a/source/server/vnode/tsdb/src/tsdb.c +++ b/source/server/vnode/tsdb/src/tsdb.c @@ -19,11 +19,10 @@ /* -------------- -------------- */ struct STsdb { - STsdbMemTable *mem; - STsdbMemTable *imem; - STkvDb * lrowdb; // last row cache - STkvDb * lastdb; // last cache - // TODO + STkvDb *tsdb; // original time-series data + STkvDb *lrowdb; // last row cache + STkvDb *lastdb; // last cache + STkvDb *fivemindb; }; int tsdbInsert(STsdb *tsdb, SSubmitReq *pReq, SSubmitRsp *pRsp) { return 0; } diff --git a/source/server/vnode/tsdb/src/tsdbSMA.c b/source/server/vnode/tsdb/src/tsdbSMA.c new file mode 100644 index 0000000000..f2f48bbc8a --- /dev/null +++ b/source/server/vnode/tsdb/src/tsdbSMA.c @@ -0,0 +1,14 @@ +/* + * Copyright (c) 2019 TAOS Data, Inc. + * + * This program is free software: you can use, redistribute, and/or modify + * it under the terms of the GNU Affero General Public License, version 3 + * or later ("AGPL"), as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */