diff options
author | Spencer Jackson <spencer.jackson@mongodb.com> | 2017-08-08 15:13:51 -0400 |
---|---|---|
committer | Spencer Jackson <spencer.jackson@mongodb.com> | 2017-08-11 15:19:33 -0400 |
commit | 718e9c68e0526e2db4fbfd0ecac31eae1b3a095a (patch) | |
tree | eb077f4a2facde33afbd5eb65b33f027d32ad586 /src/mongo/db/sessions_collection.cpp | |
parent | ba11e4172e8d5f9149a212a0b42da60873338527 (diff) | |
download | mongo-718e9c68e0526e2db4fbfd0ecac31eae1b3a095a.tar.gz |
SERVER-30566: Unwind SERVER-28190
Diffstat (limited to 'src/mongo/db/sessions_collection.cpp')
-rw-r--r-- | src/mongo/db/sessions_collection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/sessions_collection.cpp b/src/mongo/db/sessions_collection.cpp index 867ad0a1a82..04f73281234 100644 --- a/src/mongo/db/sessions_collection.cpp +++ b/src/mongo/db/sessions_collection.cpp @@ -63,7 +63,7 @@ BSONObj updateQuery(const LogicalSessionRecord& record, Date_t refreshTime) { if (record.getUser()) { BSONObjBuilder setBuilder(updateBuilder.subobjStart("$setOnInsert")); - setBuilder.append(LogicalSessionRecord::kUserFieldName, record.getUser()->toBSON()); + setBuilder.append(LogicalSessionRecord::kUserFieldName, BSON("name" << *record.getUser())); } return updateBuilder.obj(); |