diff options
Diffstat (limited to 'src/mongo/rpc/write_concern_error_detail.cpp')
-rw-r--r-- | src/mongo/rpc/write_concern_error_detail.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/rpc/write_concern_error_detail.cpp b/src/mongo/rpc/write_concern_error_detail.cpp index aa274010b67..78767dfe43e 100644 --- a/src/mongo/rpc/write_concern_error_detail.cpp +++ b/src/mongo/rpc/write_concern_error_detail.cpp @@ -84,7 +84,7 @@ bool WriteConcernErrorDetail::parseBSON(const BSONObj& source, string* errMsg) { try { auto wce = WriteConcernError::parse({"writeConcernError"}, source); _status = Status(ErrorCodes::Error(wce.getCode()), wce.getErrmsg(), source); - if ((_isErrInfoSet = wce.getErrInfo().is_initialized())) { + if ((_isErrInfoSet = wce.getErrInfo().has_value())) { _errInfo = wce.getErrInfo().value().getOwned(); } } catch (DBException& ex) { |