Merge remote-tracking branch 'origin/3.0' into fix/dnode
This commit is contained in:
commit
b265a9e938
|
@ -3508,7 +3508,7 @@ static int32_t handleLimitOffset(SOperatorInfo* pOperator, SSDataBlock* pBlock)
|
||||||
if (pProjectInfo->limit.limit > 0 && pProjectInfo->curOutput + pRes->info.rows >= pProjectInfo->limit.limit) {
|
if (pProjectInfo->limit.limit > 0 && pProjectInfo->curOutput + pRes->info.rows >= pProjectInfo->limit.limit) {
|
||||||
pRes->info.rows = (int32_t)(pProjectInfo->limit.limit - pProjectInfo->curOutput);
|
pRes->info.rows = (int32_t)(pProjectInfo->limit.limit - pProjectInfo->curOutput);
|
||||||
|
|
||||||
if (pProjectInfo->slimit.limit == -1 || pProjectInfo->slimit.limit <= pProjectInfo->curGroupOutput) {
|
if (pProjectInfo->slimit.limit != -1 && pProjectInfo->slimit.limit <= pProjectInfo->curGroupOutput) {
|
||||||
pOperator->status = OP_EXEC_DONE;
|
pOperator->status = OP_EXEC_DONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -246,14 +246,17 @@ void tdbPageCopy(SPage *pFromPage, SPage *pToPage) {
|
||||||
|
|
||||||
int tdbPageCapacity(int pageSize, int amHdrSize) {
|
int tdbPageCapacity(int pageSize, int amHdrSize) {
|
||||||
int szPageHdr;
|
int szPageHdr;
|
||||||
|
int minCellIndexSize; // at least one cell in cell index
|
||||||
|
|
||||||
if (pageSize < 65536) {
|
if (pageSize < 65536) {
|
||||||
szPageHdr = pageMethods.szPageHdr;
|
szPageHdr = pageMethods.szPageHdr;
|
||||||
|
minCellIndexSize = pageMethods.szOffset;
|
||||||
} else {
|
} else {
|
||||||
szPageHdr = pageLargeMethods.szPageHdr;
|
szPageHdr = pageLargeMethods.szPageHdr;
|
||||||
|
minCellIndexSize = pageLargeMethods.szOffset;
|
||||||
}
|
}
|
||||||
|
|
||||||
return pageSize - szPageHdr - amHdrSize;
|
return pageSize - szPageHdr - amHdrSize - sizeof(SPageFtr) - minCellIndexSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int tdbPageAllocate(SPage *pPage, int szCell, SCell **ppCell) {
|
static int tdbPageAllocate(SPage *pPage, int szCell, SCell **ppCell) {
|
||||||
|
|
|
@ -33,8 +33,16 @@ import taos
|
||||||
|
|
||||||
def checkRunTimeError():
|
def checkRunTimeError():
|
||||||
import win32gui
|
import win32gui
|
||||||
|
timeCount = 0
|
||||||
while 1:
|
while 1:
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
timeCount = timeCount + 1
|
||||||
|
if (timeCount>900):
|
||||||
|
os.system("TASKKILL /F /IM taosd.exe")
|
||||||
|
os.system("TASKKILL /F /IM taos.exe")
|
||||||
|
os.system("TASKKILL /F /IM tmq_sim.exe")
|
||||||
|
os.system("TASKKILL /F /IM mintty.exe")
|
||||||
|
quit(0)
|
||||||
hwnd = win32gui.FindWindow(None, "Microsoft Visual C++ Runtime Library")
|
hwnd = win32gui.FindWindow(None, "Microsoft Visual C++ Runtime Library")
|
||||||
if hwnd:
|
if hwnd:
|
||||||
os.system("TASKKILL /F /IM taosd.exe")
|
os.system("TASKKILL /F /IM taosd.exe")
|
||||||
|
|
Loading…
Reference in New Issue