summaryrefslogtreecommitdiff
path: root/src/mongo/db/curop.h
diff options
context:
space:
mode:
authorColin Stolley <ccstolley@github.com>2023-04-03 14:16:17 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-04-03 15:51:04 +0000
commit70c7c17bc5ef3cab7ca0e9836757209e5ed26d68 (patch)
tree55434ca7fc07ee5ddcc4cc85b4da9d97c1d485c7 /src/mongo/db/curop.h
parent76b93578db7e3c0156aad5fbe89feafb05c37194 (diff)
downloadmongo-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.h2
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;
}