From bb47a8df33705d8552ab890f4fe1d61ed9672ce3 Mon Sep 17 00:00:00 2001 From: Yihao Deng Date: Fri, 17 May 2024 15:30:04 +0800 Subject: [PATCH] opt checkpoint --- source/libs/stream/src/streamBackendRocksdb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/libs/stream/src/streamBackendRocksdb.c b/source/libs/stream/src/streamBackendRocksdb.c index af06ac94e7..c6b112267d 100644 --- a/source/libs/stream/src/streamBackendRocksdb.c +++ b/source/libs/stream/src/streamBackendRocksdb.c @@ -1090,7 +1090,7 @@ int32_t chkpDoDbCheckpoint(rocksdb_t* db, char* path) { taosMemoryFreeClear(err); goto _ERROR; } - rocksdb_checkpoint_create(cp, path, 0, &err); + rocksdb_checkpoint_create(cp, path, UINT64_MAX, &err); if (err != NULL) { stError("failed to do checkpoint at:%s, reason:%s", path, err); taosMemoryFreeClear(err); @@ -1102,7 +1102,6 @@ _ERROR: return code; } int32_t chkpPreFlushDb(rocksdb_t* db, rocksdb_column_family_handle_t** cf, int32_t nCf) { - if (nCf == 0) return 0; int code = 0; char* err = NULL;