[TD-6131]<fix> show vnodes crash
This commit is contained in:
parent
5846660566
commit
11996d2576
|
@ -107,6 +107,9 @@ extern int32_t tsQuorum;
|
||||||
extern int8_t tsUpdate;
|
extern int8_t tsUpdate;
|
||||||
extern int8_t tsCacheLastRow;
|
extern int8_t tsCacheLastRow;
|
||||||
|
|
||||||
|
//tsdb
|
||||||
|
extern bool tsdbForceKeepFile;
|
||||||
|
|
||||||
// balance
|
// balance
|
||||||
extern int8_t tsEnableBalance;
|
extern int8_t tsEnableBalance;
|
||||||
extern int8_t tsAlternativeRole;
|
extern int8_t tsAlternativeRole;
|
||||||
|
|
|
@ -151,6 +151,11 @@ int32_t tsMinTablePerVnode = TSDB_TABLES_STEP;
|
||||||
int32_t tsMaxTablePerVnode = TSDB_DEFAULT_TABLES;
|
int32_t tsMaxTablePerVnode = TSDB_DEFAULT_TABLES;
|
||||||
int32_t tsTableIncStepPerVnode = TSDB_TABLES_STEP;
|
int32_t tsTableIncStepPerVnode = TSDB_TABLES_STEP;
|
||||||
|
|
||||||
|
// tsdb config
|
||||||
|
|
||||||
|
// For backward compatibility
|
||||||
|
bool tsdbForceKeepFile = false;
|
||||||
|
|
||||||
// balance
|
// balance
|
||||||
int8_t tsEnableBalance = 1;
|
int8_t tsEnableBalance = 1;
|
||||||
int8_t tsAlternativeRole = 0;
|
int8_t tsAlternativeRole = 0;
|
||||||
|
|
|
@ -37,8 +37,6 @@ static void tsdbScanAndTryFixDFilesHeader(STsdbRepo *pRepo, int32_t *nExpired);
|
||||||
static int tsdbProcessExpiredFS(STsdbRepo *pRepo);
|
static int tsdbProcessExpiredFS(STsdbRepo *pRepo);
|
||||||
static int tsdbCreateMeta(STsdbRepo *pRepo);
|
static int tsdbCreateMeta(STsdbRepo *pRepo);
|
||||||
|
|
||||||
// For backward compatibility
|
|
||||||
bool tsdbForceKeepFile = false;
|
|
||||||
// ================== CURRENT file header info
|
// ================== CURRENT file header info
|
||||||
static int tsdbEncodeFSHeader(void **buf, SFSHeader *pHeader) {
|
static int tsdbEncodeFSHeader(void **buf, SFSHeader *pHeader) {
|
||||||
int tlen = 0;
|
int tlen = 0;
|
||||||
|
|
|
@ -81,7 +81,6 @@ typedef struct {
|
||||||
extern SGlobalCfg tsGlobalConfig[];
|
extern SGlobalCfg tsGlobalConfig[];
|
||||||
extern int32_t tsGlobalConfigNum;
|
extern int32_t tsGlobalConfigNum;
|
||||||
extern char * tsCfgStatusStr[];
|
extern char * tsCfgStatusStr[];
|
||||||
extern bool tsdbForceKeepFile;
|
|
||||||
|
|
||||||
void taosReadGlobalLogCfg();
|
void taosReadGlobalLogCfg();
|
||||||
bool taosReadGlobalCfg();
|
bool taosReadGlobalCfg();
|
||||||
|
|
Loading…
Reference in New Issue