TD-1257
This commit is contained in:
parent
3e9834c907
commit
d09567c82b
|
@ -166,7 +166,7 @@ static void mnodeCleanupTimer() {
|
||||||
static bool mnodeNeedStart() {
|
static bool mnodeNeedStart() {
|
||||||
struct stat dirstat;
|
struct stat dirstat;
|
||||||
char mnodeFileName[TSDB_FILENAME_LEN * 2] = {0};
|
char mnodeFileName[TSDB_FILENAME_LEN * 2] = {0};
|
||||||
sprintf(mnodeFileName, "%s/wal0", tsMnodeDir);
|
sprintf(mnodeFileName, "%s/wal/wal0", tsMnodeDir);
|
||||||
|
|
||||||
bool fileExist = (stat(mnodeFileName, &dirstat) == 0);
|
bool fileExist = (stat(mnodeFileName, &dirstat) == 0);
|
||||||
bool asMaster = (strcmp(tsFirst, tsLocalEp) == 0);
|
bool asMaster = (strcmp(tsFirst, tsLocalEp) == 0);
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
run unique/mnode/mgmt21.sim
|
||||||
run unique/mnode/mgmt22.sim
|
run unique/mnode/mgmt22.sim
|
||||||
run unique/mnode/mgmt23.sim
|
run unique/mnode/mgmt23.sim
|
||||||
run unique/mnode/mgmt24.sim
|
run unique/mnode/mgmt24.sim
|
||||||
|
|
Loading…
Reference in New Issue