diff options
Diffstat (limited to 'src/mongo/rpc/metadata.cpp')
-rw-r--r-- | src/mongo/rpc/metadata.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mongo/rpc/metadata.cpp b/src/mongo/rpc/metadata.cpp index e7725dd4a74..c65953790ec 100644 --- a/src/mongo/rpc/metadata.cpp +++ b/src/mongo/rpc/metadata.cpp @@ -55,14 +55,12 @@ namespace rpc { return swAuditMetadata.getStatus(); } AuditMetadata::get(txn) = std::move(swAuditMetadata.getValue()); + return Status::OK(); } Status writeRequestMetadata(OperationContext* txn, BSONObjBuilder* metadataBob) { - auto ssStatus = ServerSelectionMetadata::writeToMetadata( - ServerSelectionMetadata::get(txn), - metadataBob - ); + auto ssStatus = ServerSelectionMetadata::get(txn).writeToMetadata(metadataBob); if (!ssStatus.isOK()) { return ssStatus; } |