Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
Signed-off-by: Wish <breezewish@outlook.com>
  • Loading branch information
breezewish committed Mar 3, 2023
1 parent 3eb30f1 commit 5a7ad7b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 5 additions & 1 deletion dbms/src/Storages/Page/V3/PageDirectory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,11 @@ void VersionedPageEntries<Trait>::copyCheckpointInfoFromEdit(const typename Page
return;
}

RUNTIME_CHECK(iter->first.sequence == edit.version.sequence); // TODO: If there is a full GC this may be false?
// TODO: Not sure if there is a full GC this may be false? Let's keep it here for now.
RUNTIME_CHECK(
iter->first.sequence == edit.version.sequence,
iter->first.sequence,
edit.version.sequence);

// Discard epoch, and only check sequence.
while (iter->first.sequence == edit.version.sequence)
Expand Down
3 changes: 0 additions & 3 deletions dbms/src/Storages/Page/V3/PageDirectory.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@ extern const Metric PSMVCCNumSnapshots;
namespace DB::PS::V3
{

class CPWriteDataSource;
using CPWriteDataSourcePtr = std::shared_ptr<CPWriteDataSource>;

class PageDirectorySnapshot : public DB::PageStorageSnapshot
{
public:
Expand Down

0 comments on commit 5a7ad7b

Please sign in to comment.