From 0509744973921ab780d71a4f0da55acb2c008a20 Mon Sep 17 00:00:00 2001 From: hjxilinx Date: Tue, 26 Nov 2019 16:19:31 +0800 Subject: [PATCH] [jira none] refactor codes --- src/system/detail/src/vnodeQueryImpl.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/system/detail/src/vnodeQueryImpl.c b/src/system/detail/src/vnodeQueryImpl.c index a78c388441..1bc0f6370e 100644 --- a/src/system/detail/src/vnodeQueryImpl.c +++ b/src/system/detail/src/vnodeQueryImpl.c @@ -2952,11 +2952,11 @@ static int32_t vnodeOpenVnodeDBFiles(SQInfo *pQInfo, SQueryFileInfo *pVnodeFiles pVnodeFiles->dataFd = open(pVnodeFiles->dataFilePath, O_RDONLY); pVnodeFiles->lastFd = open(pVnodeFiles->lastFilePath, O_RDONLY); - if (stat(pVnodeFiles->dataFilePath, &fstat) < 0) return -1; - pVnodeFiles->dataFileSize = fstat.st_size; - - if (stat(pVnodeFiles->lastFilePath, &fstat) < 0) return -1; - pVnodeFiles->lastFileSize = fstat.st_size; +// if (stat(pVnodeFiles->dataFilePath, &fstat) < 0) return -1; +// pVnodeFiles->dataFileSize = fstat.st_size; +// +// if (stat(pVnodeFiles->lastFilePath, &fstat) < 0) return -1; +// pVnodeFiles->lastFileSize = fstat.st_size; #if DEFAULT_IO_ENGINE == IO_ENGINE_MMAP /* enforce kernel to preload data when the file is mapping */ -- GitLab