Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/server/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ helio_cxx_test(cluster/cluster_config_test dfly_test_lib LABELS DFLY)
helio_cxx_test(cluster/cluster_family_test dfly_test_lib LABELS DFLY)
helio_cxx_test(acl/acl_family_test dfly_test_lib LABELS DFLY)
helio_cxx_test(engine_shard_set_test dfly_test_lib LABELS DFLY)
helio_cxx_test(serializer_base_test dfly_test_lib LABELS DFLY)

add_dependencies(check_dfly dragonfly_test json_family_test list_family_test
generic_family_test memcache_parser_test rdb_test journal_test
Expand Down
3 changes: 3 additions & 0 deletions src/server/serializer_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
namespace dfly {

class ExecutionState;
struct TestDriver;

// Opaque identity for a physical DashTable bucket — its memory address.
// Unique across all databases/segments for the lifetime of a serialization.
Expand Down Expand Up @@ -66,6 +67,8 @@ struct DelayedEntryHandler {
}

private:
friend struct TestDriver;
Copy link
Copy Markdown

@augmentcode augmentcode Bot Apr 19, 2026

Choose a reason for hiding this comment

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

Making DelayedEntryHandler befriend a test-only type (TestDriver) in a widely included production header effectively grants private access to any TU that defines dfly::TestDriver, which weakens encapsulation beyond just the test target.

Severity: low

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, but...


BucketDependencies& deps_;

// Entries that are waiting for tiered storage reads to complete before they can be serialized.
Expand Down
Loading
Loading