From fed442a2cea5c42397dd8abf1349934c2fa91297 Mon Sep 17 00:00:00 2001 From: lihui Date: Tue, 21 Apr 2020 19:07:49 +0800 Subject: [PATCH] [TD-112] --- src/system/detail/src/vnodeQueryImpl.c | 2 +- src/util/src/tnote.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/system/detail/src/vnodeQueryImpl.c b/src/system/detail/src/vnodeQueryImpl.c index e69b5a5b8c..5439a1e56c 100644 --- a/src/system/detail/src/vnodeQueryImpl.c +++ b/src/system/detail/src/vnodeQueryImpl.c @@ -4021,7 +4021,7 @@ bool normalizedFirstQueryRange(bool dataInDisk, bool dataInCache, STableQuerySup } // needs the data before the begin timestamp of query time window - if (nextKey != pQuery->skey) { + if ((nextKey != pQuery->skey) && (!isPointInterpoQuery(pQuery))) { if (!pRuntimeEnv->hasTimeWindow) { pQuery->skey = nextKey; // change the query skey pQuery->lastKey = pQuery->skey; diff --git a/src/util/src/tnote.c b/src/util/src/tnote.c index 7a133590d2..1a1b3a644d 100644 --- a/src/util/src/tnote.c +++ b/src/util/src/tnote.c @@ -77,7 +77,7 @@ void taosUnLockNote(int fd, taosNoteInfo * pNote) void *taosThreadToOpenNewNote(void *param) { - char name[NOTE_FILE_NAME_LEN]; + char name[NOTE_FILE_NAME_LEN + 16]; taosNoteInfo * pNote = (taosNoteInfo *)param; pNote->taosNoteFlag ^= 1; @@ -170,7 +170,7 @@ void taosGetNoteName(char *fn, taosNoteInfo * pNote) int taosOpenNoteWithMaxLines(char *fn, int maxLines, int maxNoteNum, taosNoteInfo * pNote) { - char name[NOTE_FILE_NAME_LEN] = "\0"; + char name[NOTE_FILE_NAME_LEN + 16] = "\0"; struct stat notestat0, notestat1; int size; -- GitLab