diff --git a/source/server/vnode/tsdb/src/tsdb.c b/source/server/vnode/tsdb/src/tsdb.c index 7fbb0a6868f05329b8e909ee721f625ba813ea84..520c342a63fe30ca11b23eb3f5d55e53ece2c338 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 0000000000000000000000000000000000000000..f2f48bbc8a69a022d0fc6b8a88c5a9a55d0b4ad6 --- /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 . + */