merge 3.0
This commit is contained in:
parent
9ca80596e4
commit
22a26d3d43
|
@ -130,6 +130,7 @@ void mmInitMsgHandles(SMgmtWrapper *pWrapper) {
|
||||||
dndSetMsgHandle(pWrapper, TDMT_MND_HEARTBEAT, (NodeMsgFp)mmProcessWriteMsg);
|
dndSetMsgHandle(pWrapper, TDMT_MND_HEARTBEAT, (NodeMsgFp)mmProcessWriteMsg);
|
||||||
dndSetMsgHandle(pWrapper, TDMT_MND_SHOW, (NodeMsgFp)mmProcessReadMsg);
|
dndSetMsgHandle(pWrapper, TDMT_MND_SHOW, (NodeMsgFp)mmProcessReadMsg);
|
||||||
dndSetMsgHandle(pWrapper, TDMT_MND_SHOW_RETRIEVE, (NodeMsgFp)mmProcessReadMsg);
|
dndSetMsgHandle(pWrapper, TDMT_MND_SHOW_RETRIEVE, (NodeMsgFp)mmProcessReadMsg);
|
||||||
|
dndSetMsgHandle(pWrapper, TDMT_MND_SYSTABLE_RETRIEVE, (NodeMsgFp)mmProcessReadMsg);
|
||||||
dndSetMsgHandle(pWrapper, TDMT_MND_STATUS, (NodeMsgFp)mmProcessReadMsg);
|
dndSetMsgHandle(pWrapper, TDMT_MND_STATUS, (NodeMsgFp)mmProcessReadMsg);
|
||||||
dndSetMsgHandle(pWrapper, TDMT_MND_KILL_TRANS, (NodeMsgFp)mmProcessWriteMsg);
|
dndSetMsgHandle(pWrapper, TDMT_MND_KILL_TRANS, (NodeMsgFp)mmProcessWriteMsg);
|
||||||
dndSetMsgHandle(pWrapper, TDMT_MND_GRANT, (NodeMsgFp)mmProcessWriteMsg);
|
dndSetMsgHandle(pWrapper, TDMT_MND_GRANT, (NodeMsgFp)mmProcessWriteMsg);
|
||||||
|
|
|
@ -5519,13 +5519,16 @@ SOperatorInfo* createStreamScanOperatorInfo(void *streamReadHandle, SSDataBlock*
|
||||||
|
|
||||||
static int32_t loadSysTableContentCb(void* param, const SDataBuf* pMsg, int32_t code) {
|
static int32_t loadSysTableContentCb(void* param, const SDataBuf* pMsg, int32_t code) {
|
||||||
SSysTableScanInfo* pScanResInfo = (SSysTableScanInfo*) param;
|
SSysTableScanInfo* pScanResInfo = (SSysTableScanInfo*) param;
|
||||||
pScanResInfo->pRsp = pMsg->pData;
|
if (TSDB_CODE_SUCCESS == code) {
|
||||||
|
pScanResInfo->pRsp = pMsg->pData;
|
||||||
|
|
||||||
|
SRetrieveMetaTableRsp* pRsp = pScanResInfo->pRsp;
|
||||||
|
pRsp->numOfRows = htonl(pRsp->numOfRows);
|
||||||
|
pRsp->useconds = htobe64(pRsp->useconds);
|
||||||
|
pRsp->handle = htobe64(pRsp->handle);
|
||||||
|
pRsp->compLen = htonl(pRsp->compLen);
|
||||||
|
}
|
||||||
|
|
||||||
SRetrieveMetaTableRsp* pRsp = pScanResInfo->pRsp;
|
|
||||||
pRsp->numOfRows = htonl(pRsp->numOfRows);
|
|
||||||
pRsp->useconds = htobe64(pRsp->useconds);
|
|
||||||
pRsp->handle = htobe64(pRsp->handle);
|
|
||||||
pRsp->compLen = htonl(pRsp->compLen);
|
|
||||||
tsem_post(&pScanResInfo->ready);
|
tsem_post(&pScanResInfo->ready);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,16 @@ system sh/deploy.sh -n dnode1 -i 1
|
||||||
system sh/exec.sh -n dnode1 -s start
|
system sh/exec.sh -n dnode1 -s start
|
||||||
sql connect
|
sql connect
|
||||||
|
|
||||||
|
# todo remove
|
||||||
|
print =============== create database
|
||||||
|
sleep 3000
|
||||||
|
sql create database useless_db
|
||||||
|
sleep 1000
|
||||||
|
sql show databases
|
||||||
|
if $rows != 1 then
|
||||||
|
return -1
|
||||||
|
endi
|
||||||
|
|
||||||
print =============== show users
|
print =============== show users
|
||||||
sql show users
|
sql show users
|
||||||
if $rows != 1 then
|
if $rows != 1 then
|
||||||
|
|
Loading…
Reference in New Issue