diff --git a/src/kvstore/NebulaSnapshotManager.cpp b/src/kvstore/NebulaSnapshotManager.cpp index 330927bda60..15704e668fd 100644 --- a/src/kvstore/NebulaSnapshotManager.cpp +++ b/src/kvstore/NebulaSnapshotManager.cpp @@ -51,7 +51,7 @@ void NebulaSnapshotManager::accessAllRowsInSnapshot(GraphSpaceID spaceId, auto part = nebula::value(partRet); // Get the commit log id and commit log term of specified partition std::string val; - auto commitRet = part->engine()->get(NebulaKeyUtils::systemCommitKey(partId), &val); + auto commitRet = part->engine()->get(NebulaKeyUtils::systemCommitKey(partId), &val, snapshot); if (commitRet != nebula::cpp2::ErrorCode::SUCCEEDED) { LOG(INFO) << folly::sformat( "Cannot fetch the commit log id and term of space {} part {}", spaceId, partId);