Skip to content

Commit

Permalink
Merge pull request #11 from hongyunyan/hongyunyan_fix_5.4
Browse files Browse the repository at this point in the history
fix format
  • Loading branch information
hongyunyan authored Jun 23, 2022
2 parents aa132ef + cd83e6c commit f619310
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions dbms/src/Debug/dbgFuncMockRaftSnapshot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -291,27 +291,27 @@ SSTReaderPtr fn_get_sst_reader(SSTView v, RaftStoreProxyPtr)
}
uint8_t fn_remained(SSTReaderPtr ptr, ColumnFamilyType)
{
auto *reader = reinterpret_cast<MockSSTReader *>(ptr.inner);
auto * reader = reinterpret_cast<MockSSTReader *>(ptr.inner);
return reader->ffiRemained();
}
BaseBuffView fn_key(SSTReaderPtr ptr, ColumnFamilyType)
{
auto *reader = reinterpret_cast<MockSSTReader *>(ptr.inner);
auto * reader = reinterpret_cast<MockSSTReader *>(ptr.inner);
return reader->ffiKey();
}
BaseBuffView fn_value(SSTReaderPtr ptr, ColumnFamilyType)
{
auto *reader = reinterpret_cast<MockSSTReader *>(ptr.inner);
auto * reader = reinterpret_cast<MockSSTReader *>(ptr.inner);
return reader->ffiVal();
}
void fn_next(SSTReaderPtr ptr, ColumnFamilyType)
{
auto *reader = reinterpret_cast<MockSSTReader *>(ptr.inner);
auto * reader = reinterpret_cast<MockSSTReader *>(ptr.inner);
reader->ffiNext();
}
void fn_gc(SSTReaderPtr ptr, ColumnFamilyType)
{
auto *reader = reinterpret_cast<MockSSTReader *>(ptr.inner);
auto * reader = reinterpret_cast<MockSSTReader *>(ptr.inner);
delete reader;
}

Expand Down
2 changes: 1 addition & 1 deletion dbms/src/Debug/dbgTools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ Int64 concurrentRangeOperate(

std::list<std::thread> threads;
Int64 tol = 0;
for (const auto& region : regions)
for (const auto & region : regions)
{
const auto range = region->getRange();
const auto & [ss, ee] = getHandleRangeByTable(range->rawKeys(), table_info.id);
Expand Down

0 comments on commit f619310

Please sign in to comment.