Skip to content

Commit

Permalink
gfd
Browse files Browse the repository at this point in the history
Signed-off-by: CalvinNeo <calvinneo1995@gmail.com>
  • Loading branch information
CalvinNeo committed May 25, 2023
1 parent fc5fa63 commit cbaf0bb
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions dbms/src/Debug/MockRaftStoreProxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -379,10 +379,7 @@ void MockRaftStoreProxy::bootstrapWithRegion(
RUNTIME_CHECK_MSG(regions.empty(), "Mock Proxy regions are not cleared");
auto task_lock = kvs.genTaskLock();
auto lock = kvs.genRegionWriteLock(task_lock);
if (!lock.regions.empty())
{
throw Exception("KVStore regions are not cleared");
}
RUNTIME_CHECK_MSG(lock.regions.empty(), "KVStore regions are not cleared");
}
auto start = RecordKVFormat::genKey(table_id, 0);
auto end = RecordKVFormat::genKey(table_id + 1, 0);
Expand Down Expand Up @@ -578,10 +575,7 @@ std::tuple<raft_cmdpb::AdminRequest, raft_cmdpb::AdminResponse> MockRaftStorePro

std::tuple<raft_cmdpb::AdminRequest, raft_cmdpb::AdminResponse> MockRaftStoreProxy::composeBatchSplit(std::vector<UInt64> && region_ids, std::vector<std::pair<std::string, std::string>> && ranges, metapb::RegionEpoch old_epoch)
{
if (region_ids.size() != ranges.size())
{
throw Exception("error composeBatchSplit input");
}
RUNTIME_CHECK_MSG(region_ids.size() == ranges.size(), "error composeBatchSplit input");
auto n = region_ids.size();
raft_cmdpb::AdminRequest request;
raft_cmdpb::AdminResponse response;
Expand Down

0 comments on commit cbaf0bb

Please sign in to comment.