tsdbDef.h 1.2 KB
Newer Older
H
refact  
Hongze Cheng 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
/*
 * Copyright (c) 2019 TAOS Data, Inc. <jhtao@taosdata.com>
 *
 * 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 <http://www.gnu.org/licenses/>.
 */

H
refact  
Hongze Cheng 已提交
16 17 18
#ifndef _TD_TSDB_DEF_H_
#define _TD_TSDB_DEF_H_

H
refact  
Hongze Cheng 已提交
19
#include "mallocator.h"
H
Hongze Cheng 已提交
20
#include "tglobal.h"
H
Hongze Cheng 已提交
21
#include "thash.h"
H
Hongze Cheng 已提交
22 23
#include "tlist.h"
#include "tmsg.h"
H
Hongze Cheng 已提交
24
#include "tskiplist.h"
H
Hongze Cheng 已提交
25
#include "ttime.h"
H
refact  
Hongze Cheng 已提交
26

H
refact  
Hongze Cheng 已提交
27
#include "tsdb.h"
H
Hongze Cheng 已提交
28
#include "tsdbLog.h"
H
refact  
Hongze Cheng 已提交
29
#include "tsdbMemTable.h"
H
refact  
Hongze Cheng 已提交
30
#include "tsdbOptions.h"
H
refact  
Hongze Cheng 已提交
31 32 33 34 35

#ifdef __cplusplus
extern "C" {
#endif

H
refact  
Hongze Cheng 已提交
36
struct STsdb {
H
Hongze Cheng 已提交
37
  int32_t               vgId;
H
refact  
Hongze Cheng 已提交
38
  char *                path;
H
Hongze Cheng 已提交
39
  STsdbCfg              config;
H
Hongze Cheng 已提交
40 41
  STsdbMemTable *       mem;
  STsdbMemTable *       imem;
H
refact  
Hongze Cheng 已提交
42
  SMemAllocatorFactory *pmaf;
H
refact  
Hongze Cheng 已提交
43 44
};

H
Hongze Cheng 已提交
45 46
#define REPO_ID(r) (r)->vgId

H
refact  
Hongze Cheng 已提交
47 48 49 50
#ifdef __cplusplus
}
#endif

H
refact  
Hongze Cheng 已提交
51
#endif /*_TD_TSDB_DEF_H_*/