Merge branch 'develop' into enhance/TD-2263
This commit is contained in:
commit
2553ae59f3
|
@ -55,7 +55,6 @@ typedef struct {
|
|||
} SMnodeComponent;
|
||||
|
||||
void *tsMnodeTmr = NULL;
|
||||
static bool tsMgmtIsRunning = false;
|
||||
static EMndStatus tsMgmtStatus = TSDB_MND_STATUS_NOT_RUNNING;
|
||||
|
||||
static const SMnodeComponent tsMnodeComponents[] = {
|
||||
|
@ -139,7 +138,7 @@ int32_t mnodeInitSystem() {
|
|||
}
|
||||
|
||||
void mnodeCleanupSystem() {
|
||||
if (tsMgmtIsRunning) {
|
||||
if (mnodeIsRunning()) {
|
||||
mInfo("starting to clean up mnode");
|
||||
tsMgmtStatus = TSDB_MND_STATUS_CLEANING;
|
||||
|
||||
|
|
|
@ -1559,13 +1559,18 @@ static int rpcCheckAuthentication(SRpcConn *pConn, char *msg, int msgLen) {
|
|||
if ( !rpcIsReq(pHead->msgType) ) {
|
||||
// for response, if code is auth failure, it shall bypass the auth process
|
||||
code = htonl(pHead->code);
|
||||
if (code != 0) {
|
||||
// tTrace("%s, dont check authentication since code is:0x%x", pConn->info, code);
|
||||
pHead->msgLen = (int32_t)htonl((uint32_t)pHead->msgLen);
|
||||
return 0;
|
||||
}
|
||||
#if 0
|
||||
if (code != 0) {
|
||||
#else
|
||||
if (code == TSDB_CODE_RPC_INVALID_TIME_STAMP || code == TSDB_CODE_RPC_AUTH_FAILURE ||
|
||||
code == TSDB_CODE_RPC_AUTH_REQUIRED || code == TSDB_CODE_MND_INVALID_USER || code == TSDB_CODE_RPC_NOT_READY) {
|
||||
#endif
|
||||
// tTrace("%s, dont check authentication since code is:0x%x", pConn->info, code);
|
||||
pHead->msgLen = (int32_t)htonl((uint32_t)pHead->msgLen);
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
code = 0;
|
||||
if (pHead->spi == pConn->spi) {
|
||||
// authentication
|
||||
|
|
Loading…
Reference in New Issue