minor changes
This commit is contained in:
parent
1b9b49c95f
commit
85e0f135e2
|
@ -97,8 +97,8 @@ static SSdbRow *mndAcctActionDecode(SSdbRaw *pRaw) {
|
|||
if (sdbGetRawSoftVer(pRaw, &sver) != 0) return NULL;
|
||||
|
||||
if (sver != TSDB_ACCT_VER_NUMBER) {
|
||||
mError("failed to decode acct since %s", terrstr());
|
||||
terrno = TSDB_CODE_SDB_INVALID_DATA_VER;
|
||||
mError("failed to decode acct since %s", terrstr());
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
@ -106,8 +106,8 @@ static SSdbRow *mndDbActionDecode(SSdbRaw *pRaw) {
|
|||
if (sdbGetRawSoftVer(pRaw, &sver) != 0) return NULL;
|
||||
|
||||
if (sver != TSDB_DB_VER_NUMBER) {
|
||||
mError("failed to decode db since %s", terrstr());
|
||||
terrno = TSDB_CODE_SDB_INVALID_DATA_VER;
|
||||
mError("failed to decode db since %s", terrstr());
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
@ -86,8 +86,8 @@ static SSdbRow *mndFuncActionDecode(SSdbRaw *pRaw) {
|
|||
if (sdbGetRawSoftVer(pRaw, &sver) != 0) return NULL;
|
||||
|
||||
if (sver != SDB_FUNC_VER) {
|
||||
mError("failed to decode func since %s", terrstr());
|
||||
terrno = TSDB_CODE_SDB_INVALID_DATA_VER;
|
||||
mError("failed to decode func since %s", terrstr());
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
@ -105,8 +105,8 @@ static SSdbRow *mndStbActionDecode(SSdbRaw *pRaw) {
|
|||
if (sdbGetRawSoftVer(pRaw, &sver) != 0) return NULL;
|
||||
|
||||
if (sver != TSDB_STB_VER_NUMBER) {
|
||||
mError("failed to decode stable since %s", terrstr());
|
||||
terrno = TSDB_CODE_SDB_INVALID_DATA_VER;
|
||||
mError("failed to decode stable since %s", terrstr());
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
@ -168,7 +168,7 @@ static SSdbRow *mndTransActionDecode(SSdbRaw *pRaw) {
|
|||
|
||||
if (sver != MND_TRANS_VER_NUMBER) {
|
||||
terrno = TSDB_CODE_SDB_INVALID_DATA_VER;
|
||||
mError("failed to get check soft ver from raw:%p since %s", pRaw, terrstr());
|
||||
mError("failed to decode trans since %s", terrstr());
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
@ -115,8 +115,8 @@ static SSdbRow *mndUserActionDecode(SSdbRaw *pRaw) {
|
|||
if (sdbGetRawSoftVer(pRaw, &sver) != 0) return NULL;
|
||||
|
||||
if (sver != TSDB_USER_VER_NUMBER) {
|
||||
mError("failed to decode user since %s", terrstr());
|
||||
terrno = TSDB_CODE_SDB_INVALID_DATA_VER;
|
||||
mError("failed to decode user since %s", terrstr());
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
@ -98,8 +98,8 @@ SSdbRow *mndVgroupActionDecode(SSdbRaw *pRaw) {
|
|||
if (sdbGetRawSoftVer(pRaw, &sver) != 0) return NULL;
|
||||
|
||||
if (sver != TSDB_VGROUP_VER_NUMBER) {
|
||||
mError("failed to decode vgroup since %s", terrstr());
|
||||
terrno = TSDB_CODE_SDB_INVALID_DATA_VER;
|
||||
mError("failed to decode vgroup since %s", terrstr());
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue