提交 83be0489 编写于 作者: G Ganlin Zhao

fix(query): fix percentile function crash on large data set

上级 83fcf4fd
...@@ -284,7 +284,6 @@ static char* evacOneDataPage(SDiskbasedBuf* pBuf) { ...@@ -284,7 +284,6 @@ static char* evacOneDataPage(SDiskbasedBuf* pBuf) {
// all pages are referenced by user, try to allocate new space // all pages are referenced by user, try to allocate new space
if (pn == NULL) { if (pn == NULL) {
assert(0);
int32_t prev = pBuf->inMemPages; int32_t prev = pBuf->inMemPages;
// increase by 50% of previous mem pages // increase by 50% of previous mem pages
...@@ -304,7 +303,6 @@ static char* evacOneDataPage(SDiskbasedBuf* pBuf) { ...@@ -304,7 +303,6 @@ static char* evacOneDataPage(SDiskbasedBuf* pBuf) {
bufPage = flushPageToDisk(pBuf, d); bufPage = flushPageToDisk(pBuf, d);
} }
ASSERT((bufPage != NULL) || terrno != TSDB_CODE_SUCCESS);
return bufPage; return bufPage;
} }
...@@ -377,12 +375,6 @@ void* getNewBufPage(SDiskbasedBuf* pBuf, int32_t* pageId) { ...@@ -377,12 +375,6 @@ void* getNewBufPage(SDiskbasedBuf* pBuf, int32_t* pageId) {
char* availablePage = NULL; char* availablePage = NULL;
if (NO_IN_MEM_AVAILABLE_PAGES(pBuf)) { if (NO_IN_MEM_AVAILABLE_PAGES(pBuf)) {
availablePage = evacOneDataPage(pBuf); availablePage = evacOneDataPage(pBuf);
// Failed to allocate a new buffer page, and there is an error occurs.
if (availablePage == NULL) {
assert(0);
return NULL;
}
} }
SPageInfo* pi = NULL; SPageInfo* pi = NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册