change write opt

This commit is contained in:
yihaoDeng 2023-04-21 05:54:52 +00:00
parent 1da8565e29
commit 57c4544bf0
1 changed files with 8 additions and 9 deletions

View File

@ -14,7 +14,6 @@
*/ */
#include "streamState.h" #include "streamState.h"
#include <bits/stdint-uintn.h>
#include <string.h> #include <string.h>
#include "executor.h" #include "executor.h"
#include "osMemory.h" #include "osMemory.h"
@ -323,7 +322,7 @@ int32_t streamStateGet(SStreamState* pState, const SWinKey* key, void** pVal, in
} }
bool streamStateCheck(SStreamState* pState, const SWinKey* key) { bool streamStateCheck(SStreamState* pState, const SWinKey* key) {
#ifdef USE_ROCKSDB #ifdef USE_ROCKSDB
return hasRowBuff(pState->pFileState, (void*)key, sizeof(SWinKey)); return hasRowBuff(pState->pFileState, (void*)key, sizeof(SWinKey));
#else #else
SStateKey sKey = {.key = *key, .opNum = pState->number}; SStateKey sKey = {.key = *key, .opNum = pState->number};