diff options
author | Colin Stolley <ccstolley@github.com> | 2023-04-03 14:16:17 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-04-03 15:51:04 +0000 |
commit | 70c7c17bc5ef3cab7ca0e9836757209e5ed26d68 (patch) | |
tree | 55434ca7fc07ee5ddcc4cc85b4da9d97c1d485c7 /src/mongo/db/curop.h | |
parent | 76b93578db7e3c0156aad5fbe89feafb05c37194 (diff) | |
download | mongo-70c7c17bc5ef3cab7ca0e9836757209e5ed26d68.tar.gz |
SERVER-75117: Avoid passing NamespaceString by value when possible.
Diffstat (limited to 'src/mongo/db/curop.h')
-rw-r--r-- | src/mongo/db/curop.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/curop.h b/src/mongo/db/curop.h index f0790fee5e3..dbc8a107bda 100644 --- a/src/mongo/db/curop.h +++ b/src/mongo/db/curop.h @@ -557,7 +557,7 @@ public: /** * Gets the name of the namespace on which the current operation operates. */ - NamespaceString getNSS() const { + const NamespaceString& getNSS() const { return _nss; } |