From 23b69f62d3d5869875dc58d04eaa174f51dda37b Mon Sep 17 00:00:00 2001 From: Hongze Cheng Date: Tue, 26 Jan 2021 10:49:01 +0800 Subject: [PATCH] fix test_old_data.sim bug --- src/tsdb/src/tsdbFS.c | 1 + src/tsdb/src/tsdbFile.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tsdb/src/tsdbFS.c b/src/tsdb/src/tsdbFS.c index 553379dcc5..a758aebfaa 100644 --- a/src/tsdb/src/tsdbFS.c +++ b/src/tsdb/src/tsdbFS.c @@ -1133,6 +1133,7 @@ static int tsdbRestoreDFileSet(STsdbRepo *pRepo) { index++; } + tsdbInfo("vgId:%d FSET %d is restored", REPO_ID(pRepo), fset.fid); taosArrayPush(pfs->cstatus->df, &fset); } diff --git a/src/tsdb/src/tsdbFile.c b/src/tsdb/src/tsdbFile.c index 9da9e7a2ab..6a424b0b7c 100644 --- a/src/tsdb/src/tsdbFile.c +++ b/src/tsdb/src/tsdbFile.c @@ -408,7 +408,7 @@ int tsdbLoadDFileHeader(SDFile *pDFile, SDFInfo *pInfo) { void *pBuf = buf; pBuf = taosDecodeFixedU32(pBuf, &version); - pBuf = tsdbDecodeDFInfo(buf, pInfo); + pBuf = tsdbDecodeDFInfo(pBuf, pInfo); return 0; }