diff options
Diffstat (limited to 'src/mongo/s/write_ops')
19 files changed, 20 insertions, 20 deletions
diff --git a/src/mongo/s/write_ops/batch_downconvert.cpp b/src/mongo/s/write_ops/batch_downconvert.cpp index b6ca7bc6c44..a0eff3dd1d2 100644 --- a/src/mongo/s/write_ops/batch_downconvert.cpp +++ b/src/mongo/s/write_ops/batch_downconvert.cpp @@ -246,7 +246,7 @@ namespace mongo { } Status enforceLegacyWriteConcern( MultiCommandDispatch* dispatcher, - const StringData& dbName, + StringData dbName, const BSONObj& options, const HostOpTimeMap& hostOpTimes, vector<LegacyWCResponse>* legacyWCResponses ) { diff --git a/src/mongo/s/write_ops/batch_downconvert.h b/src/mongo/s/write_ops/batch_downconvert.h index c0d003645f6..14dcfbecdf7 100644 --- a/src/mongo/s/write_ops/batch_downconvert.h +++ b/src/mongo/s/write_ops/batch_downconvert.h @@ -61,7 +61,7 @@ namespace mongo { * Returns !OK if there was an error getting a GLE response */ Status enforceLegacyWriteConcern( MultiCommandDispatch* dispatcher, - const StringData& dbName, + StringData dbName, const BSONObj& options, const HostOpTimeMap& hostOpTimes, std::vector<LegacyWCResponse>* wcResponses ); diff --git a/src/mongo/s/write_ops/batched_command_request.cpp b/src/mongo/s/write_ops/batched_command_request.cpp index bbf8dee717a..70bfd38327f 100644 --- a/src/mongo/s/write_ops/batched_command_request.cpp +++ b/src/mongo/s/write_ops/batched_command_request.cpp @@ -206,7 +206,7 @@ namespace mongo { INVOKE( setCollNameNS, nss ); } - void BatchedCommandRequest::setNS( const StringData& collName ) { + void BatchedCommandRequest::setNS( StringData collName ) { INVOKE( setCollName, collName ); } diff --git a/src/mongo/s/write_ops/batched_command_request.h b/src/mongo/s/write_ops/batched_command_request.h index 4b51f406ee3..2ee661e248d 100644 --- a/src/mongo/s/write_ops/batched_command_request.h +++ b/src/mongo/s/write_ops/batched_command_request.h @@ -123,7 +123,7 @@ namespace mongo { bool isVerboseWC() const; void setNSS( const NamespaceString& nss ); - void setNS( const StringData& collName ); + void setNS( StringData collName ); const std::string& getNS() const; const NamespaceString& getNSS() const; diff --git a/src/mongo/s/write_ops/batched_command_response.cpp b/src/mongo/s/write_ops/batched_command_response.cpp index 3928e1b4812..a01dd16a77d 100644 --- a/src/mongo/s/write_ops/batched_command_response.cpp +++ b/src/mongo/s/write_ops/batched_command_response.cpp @@ -340,7 +340,7 @@ namespace mongo { } } - void BatchedCommandResponse::setErrMessage(const StringData& errMessage) { + void BatchedCommandResponse::setErrMessage(StringData errMessage) { _errMessage = errMessage.toString(); _isErrMessageSet = true; } diff --git a/src/mongo/s/write_ops/batched_command_response.h b/src/mongo/s/write_ops/batched_command_response.h index 5b66be7dc25..c7938b5954e 100644 --- a/src/mongo/s/write_ops/batched_command_response.h +++ b/src/mongo/s/write_ops/batched_command_response.h @@ -98,7 +98,7 @@ namespace mongo { bool isErrCodeSet() const; int getErrCode() const; - void setErrMessage(const StringData& errMessage); + void setErrMessage(StringData errMessage); void unsetErrMessage(); bool isErrMessageSet() const; const std::string& getErrMessage() const; diff --git a/src/mongo/s/write_ops/batched_delete_request.cpp b/src/mongo/s/write_ops/batched_delete_request.cpp index eea7820d76e..a1f3b6cd049 100644 --- a/src/mongo/s/write_ops/batched_delete_request.cpp +++ b/src/mongo/s/write_ops/batched_delete_request.cpp @@ -183,7 +183,7 @@ namespace mongo { return toBSON().toString(); } - void BatchedDeleteRequest::setCollName(const StringData& collName) { + void BatchedDeleteRequest::setCollName(StringData collName) { _collName = NamespaceString(collName); _isCollNameSet = true; } diff --git a/src/mongo/s/write_ops/batched_delete_request.h b/src/mongo/s/write_ops/batched_delete_request.h index 8389d5b0f27..122d488c707 100644 --- a/src/mongo/s/write_ops/batched_delete_request.h +++ b/src/mongo/s/write_ops/batched_delete_request.h @@ -88,7 +88,7 @@ namespace mongo { // individual field accessors // - void setCollName(const StringData& collName); + void setCollName(StringData collName); void setCollNameNS(const NamespaceString& collName); const std::string& getCollName() const; const NamespaceString& getCollNameNS() const; diff --git a/src/mongo/s/write_ops/batched_insert_request.cpp b/src/mongo/s/write_ops/batched_insert_request.cpp index 7236b4418e5..d7300a05575 100644 --- a/src/mongo/s/write_ops/batched_insert_request.cpp +++ b/src/mongo/s/write_ops/batched_insert_request.cpp @@ -204,7 +204,7 @@ namespace mongo { return toBSON().toString(); } - void BatchedInsertRequest::setCollName(const StringData& collName) { + void BatchedInsertRequest::setCollName(StringData collName) { _collName = NamespaceString(collName); _isCollNameSet = true; } diff --git a/src/mongo/s/write_ops/batched_insert_request.h b/src/mongo/s/write_ops/batched_insert_request.h index 151ab1bd4b0..b183c269610 100644 --- a/src/mongo/s/write_ops/batched_insert_request.h +++ b/src/mongo/s/write_ops/batched_insert_request.h @@ -87,7 +87,7 @@ namespace mongo { // individual field accessors // - void setCollName(const StringData& collName); + void setCollName(StringData collName); void setCollNameNS(const NamespaceString& collName); const std::string& getCollName() const; const NamespaceString& getCollNameNS() const; diff --git a/src/mongo/s/write_ops/batched_request_metadata.cpp b/src/mongo/s/write_ops/batched_request_metadata.cpp index cdd6ae55ffe..d1264df75eb 100644 --- a/src/mongo/s/write_ops/batched_request_metadata.cpp +++ b/src/mongo/s/write_ops/batched_request_metadata.cpp @@ -118,7 +118,7 @@ namespace mongo { other->_isSessionSet = _isSessionSet; } - void BatchedRequestMetadata::setShardName( const StringData& shardName ) { + void BatchedRequestMetadata::setShardName( StringData shardName ) { _shardName = shardName.toString(); _isShardNameSet = true; } diff --git a/src/mongo/s/write_ops/batched_request_metadata.h b/src/mongo/s/write_ops/batched_request_metadata.h index 648a0dcc4a5..e2dd99df0c1 100644 --- a/src/mongo/s/write_ops/batched_request_metadata.h +++ b/src/mongo/s/write_ops/batched_request_metadata.h @@ -64,7 +64,7 @@ namespace mongo { // individual field accessors // - void setShardName(const StringData& shardName); + void setShardName(StringData shardName); void unsetShardName(); bool isShardNameSet() const; const std::string& getShardName() const; diff --git a/src/mongo/s/write_ops/batched_update_request.cpp b/src/mongo/s/write_ops/batched_update_request.cpp index fbb12af2038..4e03f91a793 100644 --- a/src/mongo/s/write_ops/batched_update_request.cpp +++ b/src/mongo/s/write_ops/batched_update_request.cpp @@ -195,7 +195,7 @@ namespace mongo { return toBSON().toString(); } - void BatchedUpdateRequest::setCollName(const StringData& collName) { + void BatchedUpdateRequest::setCollName(StringData collName) { _collName = NamespaceString(collName); _isCollNameSet = true; } diff --git a/src/mongo/s/write_ops/batched_update_request.h b/src/mongo/s/write_ops/batched_update_request.h index f092c18a09b..78cf58c5c01 100644 --- a/src/mongo/s/write_ops/batched_update_request.h +++ b/src/mongo/s/write_ops/batched_update_request.h @@ -88,7 +88,7 @@ namespace mongo { // individual field accessors // - void setCollName(const StringData& collName); + void setCollName(StringData collName); void setCollNameNS(const NamespaceString& collName); const std::string& getCollName() const; const NamespaceString& getCollNameNS() const; diff --git a/src/mongo/s/write_ops/config_coordinator.cpp b/src/mongo/s/write_ops/config_coordinator.cpp index ca36cbe1562..66b1d6723c2 100644 --- a/src/mongo/s/write_ops/config_coordinator.cpp +++ b/src/mongo/s/write_ops/config_coordinator.cpp @@ -183,7 +183,7 @@ namespace mongo { return _errMessage; } - void setErrMessage( const StringData& errMsg ) { + void setErrMessage( StringData errMsg ) { _errMessage = errMsg.toString(); _isErrMessageSet = true; } @@ -349,7 +349,7 @@ namespace mongo { return _errMessage; } - void setErrMessage(const StringData& errMsg) { + void setErrMessage(StringData errMsg) { _errMessage = errMsg.toString(); _isErrMessageSet = true; } diff --git a/src/mongo/s/write_ops/wc_error_detail.cpp b/src/mongo/s/write_ops/wc_error_detail.cpp index 04dde3a8346..0f7536639ba 100644 --- a/src/mongo/s/write_ops/wc_error_detail.cpp +++ b/src/mongo/s/write_ops/wc_error_detail.cpp @@ -161,7 +161,7 @@ namespace mongo { return _errInfo; } - void WCErrorDetail::setErrMessage(const StringData& errMessage) { + void WCErrorDetail::setErrMessage(StringData errMessage) { _errMessage = errMessage.toString(); _isErrMessageSet = true; } diff --git a/src/mongo/s/write_ops/wc_error_detail.h b/src/mongo/s/write_ops/wc_error_detail.h index d4052e5e8db..2f07008b02b 100644 --- a/src/mongo/s/write_ops/wc_error_detail.h +++ b/src/mongo/s/write_ops/wc_error_detail.h @@ -87,7 +87,7 @@ namespace mongo { bool isErrInfoSet() const; const BSONObj& getErrInfo() const; - void setErrMessage(const StringData& errMessage); + void setErrMessage(StringData errMessage); void unsetErrMessage(); bool isErrMessageSet() const; const std::string& getErrMessage() const; diff --git a/src/mongo/s/write_ops/write_error_detail.cpp b/src/mongo/s/write_ops/write_error_detail.cpp index 65f949b411c..3d5b9725fdf 100644 --- a/src/mongo/s/write_ops/write_error_detail.cpp +++ b/src/mongo/s/write_ops/write_error_detail.cpp @@ -197,7 +197,7 @@ namespace mongo { return _errInfo; } - void WriteErrorDetail::setErrMessage(const StringData& errMessage) { + void WriteErrorDetail::setErrMessage(StringData errMessage) { _errMessage = errMessage.toString(); _isErrMessageSet = true; } diff --git a/src/mongo/s/write_ops/write_error_detail.h b/src/mongo/s/write_ops/write_error_detail.h index 299285cf109..49f9b2d8384 100644 --- a/src/mongo/s/write_ops/write_error_detail.h +++ b/src/mongo/s/write_ops/write_error_detail.h @@ -93,7 +93,7 @@ namespace mongo { bool isErrInfoSet() const; const BSONObj& getErrInfo() const; - void setErrMessage(const StringData& errMessage); + void setErrMessage(StringData errMessage); void unsetErrMessage(); bool isErrMessageSet() const; const std::string& getErrMessage() const; |