Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SERVER-84220:wiredTigerEngineRuntimeConfig perfect #1587

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2155,6 +2155,10 @@ int WiredTigerKVEngine::reconfigure(const char* str) {
return _conn->reconfigure(_conn, str);
}

const char * WiredTigerKVEngine::get_configuration() {
return _conn->get_configuration(_conn);
}

void WiredTigerKVEngine::_ensureIdentPath(StringData ident) {
size_t start = 0;
size_t idx;
Expand Down
5 changes: 5 additions & 0 deletions src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.h
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,11 @@ class WiredTigerKVEngine final : public KVEngine {
// Calls WT_CONNECTION::reconfigure on the underlying WT_CONNECTION
// held by this class
int reconfigure(const char* str);

// wiredtiger specific
// Calls WT_CONNECTION::get_configuration on the underlying WT_CONNECTION
// held by this class
const char* get_configuration();

WT_CONNECTION* getConnection() {
return _conn;
Expand Down
2 changes: 1 addition & 1 deletion src/mongo/db/storage/wiredtiger/wiredtiger_parameters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ void WiredTigerEngineRuntimeConfigParameter::append(OperationContext* opCtx,
BSONObjBuilder* b,
StringData name,
const boost::optional<TenantId>&) {
*b << name << _data.first;
*b << name << _data.second->get_configuration();
}

Status validateExtraDiagnostics(const std::vector<std::string>& value,
Expand Down