[TBASE-1123]
This commit is contained in:
parent
03abae0c6d
commit
c8921fe916
|
@ -586,9 +586,13 @@ void taosKillSystem() {
|
||||||
kill(tsProcId, 2);
|
kill(tsProcId, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
extern int tsEnableCoreFile;
|
||||||
int _sysctl(struct __sysctl_args *args );
|
int _sysctl(struct __sysctl_args *args );
|
||||||
void taosSetCoreDump() {
|
void taosSetCoreDump() {
|
||||||
|
if (0 == tsEnableCoreFile) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// 1. set ulimit -c unlimited
|
// 1. set ulimit -c unlimited
|
||||||
struct rlimit rlim;
|
struct rlimit rlim;
|
||||||
struct rlimit rlim_new;
|
struct rlimit rlim_new;
|
||||||
|
|
|
@ -163,6 +163,7 @@ int tsTelegrafUseFieldNum = 0;
|
||||||
int tsAdminRowLimit = 10240;
|
int tsAdminRowLimit = 10240;
|
||||||
|
|
||||||
int tsTscEnableRecordSql = 0;
|
int tsTscEnableRecordSql = 0;
|
||||||
|
int tsEnableCoreFile = 0;
|
||||||
|
|
||||||
int tsRpcTimer = 300;
|
int tsRpcTimer = 300;
|
||||||
int tsRpcMaxTime = 600; // seconds;
|
int tsRpcMaxTime = 600; // seconds;
|
||||||
|
@ -772,6 +773,11 @@ static void doInitGlobalConfig() {
|
||||||
tsInitConfigOption(cfg++, "tscEnableRecordSql", &tsTscEnableRecordSql, TSDB_CFG_VTYPE_INT,
|
tsInitConfigOption(cfg++, "tscEnableRecordSql", &tsTscEnableRecordSql, TSDB_CFG_VTYPE_INT,
|
||||||
TSDB_CFG_CTYPE_B_CONFIG,
|
TSDB_CFG_CTYPE_B_CONFIG,
|
||||||
1, 100000, 0, TSDB_CFG_UTYPE_NONE);
|
1, 100000, 0, TSDB_CFG_UTYPE_NONE);
|
||||||
|
|
||||||
|
tsInitConfigOption(cfg++, "enableCoreFile", &tsEnableCoreFile, TSDB_CFG_VTYPE_INT,
|
||||||
|
TSDB_CFG_CTYPE_B_CONFIG,
|
||||||
|
1, 100000, 0, TSDB_CFG_UTYPE_NONE);
|
||||||
|
|
||||||
// version info
|
// version info
|
||||||
tsInitConfigOption(cfg++, "gitinfo", gitinfo, TSDB_CFG_VTYPE_STRING,
|
tsInitConfigOption(cfg++, "gitinfo", gitinfo, TSDB_CFG_VTYPE_STRING,
|
||||||
TSDB_CFG_CTYPE_B_SHOW | TSDB_CFG_CTYPE_B_CLIENT,
|
TSDB_CFG_CTYPE_B_SHOW | TSDB_CFG_CTYPE_B_CLIENT,
|
||||||
|
@ -1161,4 +1167,4 @@ void tsPrintGlobalConfigSpec() {
|
||||||
pPrint(" dataDir: %s", dataDir);
|
pPrint(" dataDir: %s", dataDir);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue