Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
  • Loading branch information
hongyunyan committed May 26, 2022
1 parent 7d09c2e commit ac29da0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dbms/src/Storages/Transaction/KVStore.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class KVStore final : private boost::noncopyable
EngineStoreApplyRes handleWriteRaftCmd(const WriteCmdsView & cmds, UInt64 region_id, UInt64 index, UInt64 term, TMTContext & tmt);

void handleApplySnapshot(metapb::Region && region, uint64_t peer_id, const SSTViewVec, uint64_t index, uint64_t term, TMTContext & tmt);

std::vector<UInt64> /* */ preHandleSnapshotToFiles(
RegionPtr new_region,
const SSTViewVec,
Expand Down
2 changes: 1 addition & 1 deletion dbms/src/Storages/Transaction/ProxyFFI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ RawCppPtr PreHandleSnapshot(
template <typename PreHandledSnapshot>
void ApplyPreHandledSnapshot(EngineStoreServerWrap * server, PreHandledSnapshot * snap)
{
static_assert(std::is_same_v<PreHandledSnapshot, PreHandledSnapshotWithFiles>,"Unknown pre-handled snapshot type");
static_assert(std::is_same_v<PreHandledSnapshot, PreHandledSnapshotWithFiles>, "Unknown pre-handled snapshot type");

try
{
Expand Down
12 changes: 6 additions & 6 deletions dbms/src/Storages/Transaction/StorageEngineType.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ inline const std::string applyMethodToString(SnapshotApplyMethod method)
{
switch (method)
{
case SnapshotApplyMethod::DTFile_Directory:
return "file1";
case SnapshotApplyMethod::DTFile_Single:
return "file2";
default:
return "unknown(" + std::to_string(static_cast<std::int32_t>(method)) + ")";
case SnapshotApplyMethod::DTFile_Directory:
return "file1";
case SnapshotApplyMethod::DTFile_Single:
return "file2";
default:
return "unknown(" + std::to_string(static_cast<std::int32_t>(method)) + ")";
}
return "unknown";
}
Expand Down

0 comments on commit ac29da0

Please sign in to comment.