Skip to content

Commit f9cb809

Browse files
committed
MB-68926: subdoc_max_multi_paths is now a tunable via REST
This was increased as part of MB-63734, but this slipped through as all unit tests run with the environment variable set Change-Id: Ia383c24ad928a4e5da69ada954f00070317fb93e Reviewed-on: https://review.couchbase.org/c/kv_engine/+/236618 Reviewed-by: Jim Walker <[email protected]> Tested-by: Build Bot <[email protected]>
1 parent 20c6eca commit f9cb809

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

daemon/settings.cc

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1372,15 +1372,7 @@ void Settings::setMaxConcurrentCommandsPerConnection(size_t num) {
13721372
}
13731373

13741374
void Settings::setSubdocMultiMaxPaths(size_t val) {
1375-
// Can only change this for internal R&D, SDKs are generally hardcoded with
1376-
// the default so this would be pointless/dangerous to change outside of a
1377-
// controlled test.
1378-
if (getenv("MEMCACHED_UNIT_TESTS") != nullptr) {
1379-
subdoc_multi_max_paths.store(val, std::memory_order_release);
1380-
has.subdoc_multi_max_paths = true;
1381-
notify_changed("subdoc_multi_max_paths");
1382-
} else {
1383-
LOG_WARNING_RAW(
1384-
"Settings::setSubdocMultiMaxPaths: ignoring request to change");
1385-
}
1386-
}
1375+
subdoc_multi_max_paths.store(val, std::memory_order_release);
1376+
has.subdoc_multi_max_paths = true;
1377+
notify_changed("subdoc_multi_max_paths");
1378+
}

0 commit comments

Comments
 (0)