File tree 3 files changed +7
-2
lines changed
3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -133,6 +133,8 @@ ProxyConfig<RouterInfo>::ProxyConfig(
133
133
checkLogic (
134
134
enableSetDistribution || enableCrossRegionSetRpc,
135
135
" ProxyConfig: cannot disable cross-region set rpc if set distribution is disabled" );
136
+ bool enableGlobalBigValueRoute =
137
+ readBool (" enable_global_big_value_route" , true );
136
138
137
139
proxy.router ().runtimeFeatures_ .enableOdslScuba =
138
140
readBool (" enable_odsl_scuba" , false );
@@ -151,7 +153,8 @@ ProxyConfig<RouterInfo>::ProxyConfig(
151
153
.enableCrossRegionDeleteRpc = enableCrossRegionDeleteRpc,
152
154
.enableAsyncDlBroadcast = enableAsyncDlBroadcast,
153
155
.enableSetDistribution = enableSetDistribution,
154
- .enableCrossRegionSetRpc = enableCrossRegionSetRpc});
156
+ .enableCrossRegionSetRpc = enableCrossRegionSetRpc,
157
+ .enableGlobalBigValueRoute = enableGlobalBigValueRoute});
155
158
serviceInfo_ = std::make_shared<ServiceInfo<RouterInfo>>(proxy, *this );
156
159
}
157
160
Original file line number Diff line number Diff line change @@ -48,7 +48,8 @@ ProxyRoute<RouterInfo>::ProxyRoute(
48
48
proxy_,
49
49
routeSelectors,
50
50
rolloutOpts)) {
51
- if (proxy_.getRouterOptions ().big_value_split_threshold != 0 ) {
51
+ if (proxy_.getRouterOptions ().big_value_split_threshold != 0 &&
52
+ rolloutOpts.enableGlobalBigValueRoute ) {
52
53
root_ = detail::wrapWithBigValueRoute<RouterInfo>(
53
54
std::move (root_), proxy_.getRouterOptions ());
54
55
}
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ struct RootRouteRolloutOpts {
32
32
bool enableAsyncDlBroadcast = false ;
33
33
bool enableSetDistribution = false ;
34
34
bool enableCrossRegionSetRpc = true ;
35
+ bool enableGlobalBigValueRoute = true ;
35
36
};
36
37
37
38
template <class RouterInfo >
You can’t perform that action at this time.
0 commit comments