From 05e248b5d8243dfb2c9018e8a0fb35ac02765b09 Mon Sep 17 00:00:00 2001 From: Hongze Cheng Date: Sat, 16 Jan 2021 17:37:30 +0800 Subject: [PATCH] debug --- src/tsdb/inc/tsdbFile.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tsdb/inc/tsdbFile.h b/src/tsdb/inc/tsdbFile.h index d6d2840530..af57139f82 100644 --- a/src/tsdb/inc/tsdbFile.h +++ b/src/tsdb/inc/tsdbFile.h @@ -131,7 +131,7 @@ static FORCE_INLINE int tsdbAppendMFile(SMFile* pMFile, void* buf, int64_t nbyte pMFile->info.size += nbyte; - return 0; + return nbyte; } static FORCE_INLINE int tsdbRemoveMFile(SMFile* pMFile) { return tfsremove(TSDB_FILE_F(pMFile)); } @@ -242,7 +242,7 @@ static FORCE_INLINE int tsdbAppendDFile(SDFile* pDFile, void* buf, int64_t nbyte pDFile->info.size += nbyte; - return 0; + return nbyte; } static FORCE_INLINE int tsdbRemoveDFile(SDFile* pDFile) { return tfsremove(TSDB_FILE_F(pDFile)); } -- GitLab