refactor: do some internal refactor.
This commit is contained in:
parent
9649db9003
commit
6bb30822c2
|
@ -880,14 +880,13 @@ static int32_t mndProcessCreateStreamReq(SRpcMsg *pReq) {
|
||||||
// reuse this function for stream
|
// reuse this function for stream
|
||||||
|
|
||||||
if (sql != NULL && sqlLen > 0) {
|
if (sql != NULL && sqlLen > 0) {
|
||||||
auditRecord(pReq, pMnode->clusterId, "createStream", dbname.dbname, name.dbname, sql,
|
auditRecord(pReq, pMnode->clusterId, "createStream", dbname.dbname, name.dbname, sql, sqlLen);
|
||||||
sqlLen);
|
} else {
|
||||||
}
|
|
||||||
else{
|
|
||||||
char detail[1000] = {0};
|
char detail[1000] = {0};
|
||||||
sprintf(detail, "dbname:%s, stream name:%s", dbname.dbname, name.dbname);
|
sprintf(detail, "dbname:%s, stream name:%s", dbname.dbname, name.dbname);
|
||||||
auditRecord(pReq, pMnode->clusterId, "createStream", dbname.dbname, name.dbname, detail, strlen(detail));
|
auditRecord(pReq, pMnode->clusterId, "createStream", dbname.dbname, name.dbname, detail, strlen(detail));
|
||||||
}
|
}
|
||||||
|
|
||||||
_OVER:
|
_OVER:
|
||||||
if (code != 0 && code != TSDB_CODE_ACTION_IN_PROGRESS) {
|
if (code != 0 && code != TSDB_CODE_ACTION_IN_PROGRESS) {
|
||||||
mError("stream:%s, failed to create since %s", createStreamReq.name, terrstr());
|
mError("stream:%s, failed to create since %s", createStreamReq.name, terrstr());
|
||||||
|
|
Loading…
Reference in New Issue