fix: resolve a typo in errormsg printing in walScanLogGetLastVer
This commit is contained in:
parent
a484fa72c5
commit
a4fd2def98
|
@ -123,8 +123,8 @@ static FORCE_INLINE int64_t walScanLogGetLastVer(SWal* pWal, int32_t fileIdx) {
|
|||
}
|
||||
SWalCkHead* logContent = (SWalCkHead*)candidate;
|
||||
if (walValidHeadCksum(logContent) != 0) {
|
||||
wError("vgId:%d, failed to validate checksum of wal entry header. offset:% %" PRId64 ", file:%s",
|
||||
((char*)(logContent)-buf), fnameStr);
|
||||
wWarn("vgId:%d, failed to validate checksum of wal entry header. offset:%" PRId64 ", file:%s", pWal->cfg.vgId,
|
||||
offset + ((char*)(logContent)-buf), fnameStr);
|
||||
haystack = candidate + 1;
|
||||
if (firstTrial) {
|
||||
break;
|
||||
|
@ -162,8 +162,8 @@ static FORCE_INLINE int64_t walScanLogGetLastVer(SWal* pWal, int32_t fileIdx) {
|
|||
}
|
||||
if (walValidBodyCksum(logContent) != 0) {
|
||||
terrno = TSDB_CODE_WAL_CHKSUM_MISMATCH;
|
||||
wError("vgId:%d, failed to validate checksum of wal entry body. offset:% %" PRId64 ", file:%s",
|
||||
((char*)(logContent)-buf), fnameStr);
|
||||
wWarn("vgId:%d, failed to validate checksum of wal entry body. offset:%" PRId64 ", file:%s", pWal->cfg.vgId,
|
||||
offset + ((char*)(logContent)-buf), fnameStr);
|
||||
haystack = candidate + 1;
|
||||
if (firstTrial) {
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue