From 5f45a1d6bab465e4cf3bf2e0e297409ab97ba400 Mon Sep 17 00:00:00 2001 From: hjxilinx Date: Sun, 9 Feb 2020 17:18:48 +0800 Subject: [PATCH] refactor codes --- src/util/src/tresultBuf.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/util/src/tresultBuf.c b/src/util/src/tresultBuf.c index 036012f0b6..31218670ac 100644 --- a/src/util/src/tresultBuf.c +++ b/src/util/src/tresultBuf.c @@ -27,10 +27,6 @@ int32_t createResultBuf(SQueryResultBuf** pResultBuf, int32_t size, int32_t rowS pResBuf->fd = open(pResBuf->path, O_CREAT | O_RDWR, 0666); memset(path, 0, tListLen(path)); - getTmpfilePath("tsdb_q_i", path); - pResBuf->internpath = strdup(path); - - pResBuf->internfd = open(pResBuf->internpath, O_CREAT|O_RDWR, 0666); if (!FD_VALID(pResBuf->fd)) { pError("failed to create tmp file: %s on disk. %s", pResBuf->path, strerror(errno));