diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 325da517287..f496e873541 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1937,6 +1937,7 @@ WORKSPACE.bazel @10gen/devprod-build @svc-auto-approve-bot /src/mongo/db/commands/**/killoperations* @10gen/server-programmability @svc-auto-approve-bot /src/mongo/db/commands/**/shutdown* @10gen/server-programmability @svc-auto-approve-bot /src/mongo/db/commands/**/sleep_command.* @10gen/server-programmability @svc-auto-approve-bot +/src/mongo/db/commands/**/test_commands.* @10gen/server-storage-engine-integration @svc-auto-approve-bot /src/mongo/db/commands/**/test_commands_enabled.* @10gen/server-programmability @svc-auto-approve-bot /src/mongo/db/commands/**/user_management_commands* @10gen/server-security @svc-auto-approve-bot /src/mongo/db/commands/**/search_* @10gen/query-integration-search @svc-auto-approve-bot diff --git a/modules_poc/modules.yaml b/modules_poc/modules.yaml index 478d8a11ae2..0b81b5977e7 100644 --- a/modules_poc/modules.yaml +++ b/modules_poc/modules.yaml @@ -129,7 +129,7 @@ core.commands: - src/mongo/db/commands/shutdown.* - src/mongo/db/commands/shutdown_d.cpp - src/mongo/db/commands/sleep_command.cpp - - src/mongo/db/commands/test_commands[._]* + - src/mongo/db/commands/test_commands_enabled* - src/mongo/db/commands/generic.* - src/mongo/db/commands/generic_servers.* - src/mongo/db/commands/parameters.* @@ -857,6 +857,7 @@ storage_engine_integration: - src/mongo/db/index_repair* - src/mongo/db/commands/fsync* - src/mongo/db/commands/dbcommands* + - src/mongo/db/commands/test_commands.* - src/mongo/db/commands/resize_oplog* - src/mongo/db/op_observer/batched_write* - src/mongo/db/stats/storage_stats* diff --git a/src/mongo/db/commands/OWNERS.yml b/src/mongo/db/commands/OWNERS.yml index 0d85e0d98bd..da76c12448d 100644 --- a/src/mongo/db/commands/OWNERS.yml +++ b/src/mongo/db/commands/OWNERS.yml @@ -39,6 +39,9 @@ filters: - "sleep_command.*": approvers: - 10gen/server-programmability + - "test_commands.*": + approvers: + - 10gen/server-storage-engine-integration - "test_commands_enabled.*": approvers: - 10gen/server-programmability diff --git a/src/mongo/db/commands/test_commands.h b/src/mongo/db/commands/test_commands.h index 9dc4e12c5fd..a6a9382eead 100644 --- a/src/mongo/db/commands/test_commands.h +++ b/src/mongo/db/commands/test_commands.h @@ -32,6 +32,7 @@ #include "mongo/bson/timestamp.h" #include "mongo/db/operation_context.h" #include "mongo/db/storage/durable_history_pin.h" +#include "mongo/util/modules.h" #include @@ -44,7 +45,7 @@ namespace mongo { * oldest timestamp and perform a write into `mdb_testing.pinned_timestamp`. This hook knows how to * read that collection and re-pin any history requests after a restart or across rollback. */ -class TestingDurableHistoryPin : public DurableHistoryPin { +class MONGO_MOD_PUBLIC TestingDurableHistoryPin : public DurableHistoryPin { public: std::string getName() override; boost::optional calculatePin(OperationContext* opCtx) override;