diff --git a/NoRM/BSON/DocumentExceedsSizeLimitsException.cs b/NoRM/BSON/DocumentExceedsSizeLimitsException.cs index e57688c8..68b94995 100644 --- a/NoRM/BSON/DocumentExceedsSizeLimitsException.cs +++ b/NoRM/BSON/DocumentExceedsSizeLimitsException.cs @@ -3,7 +3,7 @@ namespace Norm.BSON { /// - /// An exception that can be thrown by MongoCollection when the document is more than the MongoDB limit of 4MB. + /// An exception that can be thrown by MongoCollection when the document is more than the MongoDB limit of 8MB. /// /// /// The type of the document that was serialized. diff --git a/NoRM/Protocol/Messages/Message.cs b/NoRM/Protocol/Messages/Message.cs index cbac4ba8..2626255a 100644 --- a/NoRM/Protocol/Messages/Message.cs +++ b/NoRM/Protocol/Messages/Message.cs @@ -7,7 +7,7 @@ namespace Norm.Protocol /// public class Message { - protected const int FOUR_MEGABYTES = 4 * 1024 * 1024; + protected const int EIGHT_MEGABYTES = 8 * 1024 * 1024; /// TODO::Description. protected string _collection; @@ -44,7 +44,7 @@ protected Message(IConnection connection, string fullyQualifiedCollName) protected static byte[] GetPayload(X data) { var payload = BsonSerializer.Serialize(data); - if (payload.Length > FOUR_MEGABYTES) + if (payload.Length > EIGHT_MEGABYTES) { throw new DocumentExceedsSizeLimitsException(data, payload.Length); }