Skip to content

Commit 43103bb

Browse files
author
rstam
committed
CSHARP-513: Fixed SystemProfileInfo.Deserialize to call SkipValue on unknown fields. In 1.6 we will add support for the new fields.
1 parent acc1503 commit 43103bb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Driver/Core/SystemProfileInfo.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,8 @@ public override object Deserialize(
448448
profileInfo.User = bsonReader.ReadString();
449449
break;
450450
default:
451-
break; // ignore unknown elements
451+
bsonReader.SkipValue(); // ignore unknown elements
452+
break;
452453
}
453454
}
454455
bsonReader.ReadEndDocument();

0 commit comments

Comments
 (0)