Skip to content

Commit

Permalink
Disable Parallel Prehandle (pingcap#219)
Browse files Browse the repository at this point in the history
Signed-off-by: CalvinNeo <calvinneo1995@gmail.com>
  • Loading branch information
CalvinNeo authored Jun 21, 2024
1 parent 1148edf commit 161c9ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dbms/src/Storages/KVStore/MultiRaft/PrehandleSnapshot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -329,10 +329,10 @@ static inline std::pair<std::vector<std::string>, size_t> getSplitKey(

// Don't change the order of following checks, `getApproxBytes` involves some overhead,
// although it is optimized to bring about the minimum overhead.
#if SERVERLESS_PROXY == 0
// #if SERVERLESS_PROXY == 0
if (new_region->getClusterRaftstoreVer() != RaftstoreVer::V2)
return std::make_pair(std::vector<std::string>{}, 0);
#endif
// #endif
auto approx_bytes = sst_stream->getApproxBytes();
if (approx_bytes <= parallel_prehandle_threshold)
{
Expand Down

0 comments on commit 161c9ef

Please sign in to comment.