Skip to content

refactor: remove unused timestamp parameter from Compact#771

Merged
zhanglei1949 merged 1 commit into
alibaba:mainfrom
zhanglei1949:zl/rm-compact-ts
Jul 23, 2026
Merged

refactor: remove unused timestamp parameter from Compact#771
zhanglei1949 merged 1 commit into
alibaba:mainfrom
zhanglei1949:zl/rm-compact-ts

Conversation

@zhanglei1949

Copy link
Copy Markdown
Member

Related Issues

fix #770

What does this PR do?

Removes the unused timestamp parameter from the Compact interface across the storage layer, since the parameter was never actually used inside the implementation.

What changes in this PR?

  • PropertyGraph::Compact(): removed the timestamp_t ts parameter.
  • VertexTable::Compact(): removed the timestamp_t ts parameter.
  • EdgeTable::Compact(sort_key_for_nbr): removed the timestamp_t ts parameter, keeping sort_key_for_nbr.
  • Updated all call sites accordingly:
    • src/transaction/compact_transaction.cc
    • src/storages/loader/abstract_property_graph_loader.cc
    • src/main/neug_db.cc
    • tests/storage/test_vertex_table.cc
    • tests/storage/test_edge_table.cc
  • Verified with a full make -j10 build; compiles successfully with no errors.

Copilot AI review requested due to automatic review settings July 23, 2026 03:45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes the unused timestamp_t parameter from the Compact APIs across the storage layer, aligning the public headers and all internal callers with the fact that compaction behavior does not depend on a timestamp.

Changes:

  • Updated PropertyGraph::Compact, VertexTable::Compact, and EdgeTable::Compact signatures to drop the unused timestamp argument.
  • Updated all in-repo call sites (transaction, loader, DB checkpointing/WAL ingest paths) to call the new signatures.
  • Updated unit tests to match the new API.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated no comments.

Show a summary per file
File Description
include/neug/storages/graph/property_graph.h Updates public PropertyGraph::Compact() signature to remove timestamp parameter.
include/neug/storages/graph/vertex_table.h Updates public VertexTable::Compact() signature to remove timestamp parameter.
include/neug/storages/graph/edge_table.h Updates public EdgeTable::Compact(sort_key_for_nbr) signature to remove timestamp parameter.
src/storages/graph/property_graph.cc Updates PropertyGraph::Compact() implementation and table compaction calls to the new signatures.
src/storages/graph/vertex_table.cc Updates VertexTable::Compact() implementation signature.
src/storages/graph/edge_table.cc Updates EdgeTable::Compact() implementation signature.
src/transaction/compact_transaction.cc Updates compaction transaction to call Compact() without a timestamp.
src/storages/loader/abstract_property_graph_loader.cc Updates loader fragment finalization to call graph_.Compact() without a timestamp.
src/main/neug_db.cc Updates WAL ingest and checkpointing compaction calls to use Compact() without a timestamp.
tests/storage/test_vertex_table.cc Updates test to call VertexTable::Compact() with no arguments.
tests/storage/test_edge_table.cc Updates test to call EdgeTable::Compact(std::nullopt) with no timestamp argument.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@zhanglei1949
zhanglei1949 requested a review from liulx20 July 23, 2026 03:48
@zhanglei1949
zhanglei1949 merged commit 7838b0e into alibaba:main Jul 23, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove the dummy timestamp parameter for Compact

3 participants