提交 9b6edbe7 编写于 作者: L lichuang

[TD-4352]fix compile error

上级 dd564226
......@@ -453,8 +453,8 @@ static int tsdbDropMetaRecord(STsdbFS *pfs, SMFile *pMFile, uint64_t uid) {
}
static int tsdbCompactMetaFile(STsdbRepo *pRepo, STsdbFS *pfs, SMFile *pMFile) {
float delPercent = pMFile->info.nDels * 1.0 / pMFile->info.nRecords;
float tombPercent = pMFile->info.tombSize * 1.0 / pMFile->info.size;
float delPercent = (float)(pMFile->info.nDels) / (float)(pMFile->info.nRecords);
float tombPercent = (float)(pMFile->info.tombSize) / (float)(pMFile->info.size);
if (delPercent < 0.33 && tombPercent < 0.33) {
return 0;
......@@ -540,6 +540,7 @@ _err:
ASSERT(mf.info.nDels == 0);
ASSERT(mf.info.tombSize == 0);
tsdbInfo("end compact tsdb meta file,code:%d,nRecords:%" PRId64 ",size:%" PRId64,
code,mf.info.nRecords,mf.info.size);
return code;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册