feat: report startup steps
This commit is contained in:
parent
271e6255ed
commit
a3ed0703b5
|
@ -141,7 +141,6 @@ void dmReportStartup(SDnode *pDnode, const char *pName, const char *pDesc) {
|
||||||
tstrncpy(pStartup->name, pName, TSDB_STEP_NAME_LEN);
|
tstrncpy(pStartup->name, pName, TSDB_STEP_NAME_LEN);
|
||||||
tstrncpy(pStartup->desc, pDesc, TSDB_STEP_DESC_LEN);
|
tstrncpy(pStartup->desc, pDesc, TSDB_STEP_DESC_LEN);
|
||||||
dInfo("step:%s, %s", pStartup->name, pStartup->desc);
|
dInfo("step:%s, %s", pStartup->name, pStartup->desc);
|
||||||
taosMsleep(300);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void dmReportStartupByWrapper(SMgmtWrapper *pWrapper, const char *pName, const char *pDesc) {
|
void dmReportStartupByWrapper(SMgmtWrapper *pWrapper, const char *pName, const char *pDesc) {
|
||||||
|
|
|
@ -617,10 +617,10 @@ void shellTestNetWork() {
|
||||||
|
|
||||||
void shellCheckServerStatus() {
|
void shellCheckServerStatus() {
|
||||||
if (!args.status && !args.verbose) return;
|
if (!args.status && !args.verbose) return;
|
||||||
char details[1024] = {0};
|
|
||||||
|
|
||||||
TSDB_SERVER_STATUS code;
|
TSDB_SERVER_STATUS code;
|
||||||
do {
|
do {
|
||||||
|
char details[1024] = {0};
|
||||||
code = taos_check_server_status(args.host, args.port, details, args.verbose ? 1024 : 0);
|
code = taos_check_server_status(args.host, args.port, details, args.verbose ? 1024 : 0);
|
||||||
switch (code) {
|
switch (code) {
|
||||||
case TSDB_SRV_STATUS_UNAVAILABLE:
|
case TSDB_SRV_STATUS_UNAVAILABLE:
|
||||||
|
|
Loading…
Reference in New Issue