Skip to content

Commit 754e930

Browse files
committed
PSMDB-1674: fix dependency on audit for service_entry_point_router_role_bm
1 parent 648cbd6 commit 754e930

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/mongo/db/audit/BUILD.bazel

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,17 @@ mongo_cc_library(
5151
],
5252
)
5353

54+
mongo_cc_library(
55+
name = "audit_impl_shim",
56+
srcs = [],
57+
deps = select({
58+
"//bazel/config:audit_enabled": [
59+
":audit_impl",
60+
],
61+
"//conditions:default": [],
62+
}),
63+
)
64+
5465
# Please note that the `commands` library (@see below) depends on
5566
# the `audit` library and the `audit_commands` depends on `commands`.
5667
mongo_cc_library(

src/mongo/s/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1259,6 +1259,7 @@ mongo_cc_benchmark(
12591259
":startup_initialization",
12601260
"//src/mongo/db:read_write_concern_defaults_mock",
12611261
"//src/mongo/db:service_context_non_d",
1262+
"//src/mongo/db/audit:audit_impl_shim",
12621263
"//src/mongo/db/auth:authserver",
12631264
"//src/mongo/rpc:message",
12641265
"//src/mongo/unittest:benchmark_util",

0 commit comments

Comments
 (0)