提交 2533b5c5 编写于 作者: L liuyao

op stream

上级 255af841
...@@ -308,7 +308,7 @@ int32_t streamExecForAll(SStreamTask* pTask) { ...@@ -308,7 +308,7 @@ int32_t streamExecForAll(SStreamTask* pTask) {
int64_t ckId = 0; int64_t ckId = 0;
int64_t dataVer = 0; int64_t dataVer = 0;
qGetCheckpointVersion(pTask->exec.pExecutor, &dataVer, &ckId); qGetCheckpointVersion(pTask->exec.pExecutor, &dataVer, &ckId);
if (dataVer > pTask->chkInfo.version) { // save it since the checkpoint is updated if (ckId > pTask->chkInfo.id) { // save it since the checkpoint is updated
qDebug("s-task:%s exec end, start to update check point, ver from %" PRId64 " to %" PRId64 qDebug("s-task:%s exec end, start to update check point, ver from %" PRId64 " to %" PRId64
", checkPoint id:%" PRId64 " -> %" PRId64, ", checkPoint id:%" PRId64 " -> %" PRId64,
pTask->id.idStr, pTask->chkInfo.version, dataVer, pTask->chkInfo.id, ckId); pTask->id.idStr, pTask->chkInfo.version, dataVer, pTask->chkInfo.id, ckId);
......
...@@ -433,6 +433,7 @@ int streamInitBackend(SStreamState* pState, char* path) { ...@@ -433,6 +433,7 @@ int streamInitBackend(SStreamState* pState, char* path) {
pState->pTdbState->writeOpts = rocksdb_writeoptions_create(); pState->pTdbState->writeOpts = rocksdb_writeoptions_create();
// rocksdb_writeoptions_ // rocksdb_writeoptions_
// rocksdb_writeoptions_set_no_slowdown(pState->pTdbState->writeOpts, 1); // rocksdb_writeoptions_set_no_slowdown(pState->pTdbState->writeOpts, 1);
rocksdb_writeoptions_disable_WAL(pState->pTdbState->writeOpts, 1);
pState->pTdbState->readOpts = rocksdb_readoptions_create(); pState->pTdbState->readOpts = rocksdb_readoptions_create();
pState->pTdbState->cfOpts = (rocksdb_options_t**)cfOpt; pState->pTdbState->cfOpts = (rocksdb_options_t**)cfOpt;
pState->pTdbState->pCompare = pCompare; pState->pTdbState->pCompare = pCompare;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册