提交 819154e1 编写于 作者: L liuyao

use delete_mark to drop check point

上级 20f7838c
...@@ -313,16 +313,6 @@ SStreamSnapshot* getSnapshot(SStreamFileState* pFileState) { ...@@ -313,16 +313,6 @@ SStreamSnapshot* getSnapshot(SStreamFileState* pFileState) {
return pFileState->usedBuffs; return pFileState->usedBuffs;
} }
// void streamFileStateDecode(SStreamFileState* pFileState, void* pBuff, int32_t len) {
// pBuff = taosDecodeFixedI64(pBuff, &pFileState->flushMark);
// }
// void streamFileStateEncode(SStreamFileState* pFileState, void** pVal, int32_t* pLen) {
// *pLen = sizeof(TSKEY);
// (*pVal) = taosMemoryCalloc(1, *pLen);
// void* buff = *pVal;
// taosEncodeFixedI64(&buff, pFileState->flushMark);
// }
void streamFileStateDecode(TSKEY* key, void* pBuff, int32_t len) { pBuff = taosDecodeFixedI64(pBuff, key); } void streamFileStateDecode(TSKEY* key, void* pBuff, int32_t len) { pBuff = taosDecodeFixedI64(pBuff, key); }
void streamFileStateEncode(TSKEY* key, void** pVal, int32_t* pLen) { void streamFileStateEncode(TSKEY* key, void** pVal, int32_t* pLen) {
...@@ -420,7 +410,7 @@ int32_t recoverSnapshot(SStreamFileState* pFileState) { ...@@ -420,7 +410,7 @@ int32_t recoverSnapshot(SStreamFileState* pFileState) {
TSKEY ts; TSKEY ts;
sscanf(val, "%" PRId64 "", &ts); sscanf(val, "%" PRId64 "", &ts);
taosMemoryFree(val); taosMemoryFree(val);
if (ts < pFileState->flushMark) { if (ts < pFileState->deleteMark) {
forceRemoveCheckpoint(pFileState, i); forceRemoveCheckpoint(pFileState, i);
break; break;
} else { } else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册