Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion NoRM/BSON/DocumentExceedsSizeLimitsException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Norm.BSON
{
/// <summary>
/// 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.
/// </summary>
/// <typeparam retval="T">
/// The type of the document that was serialized.
Expand Down
4 changes: 2 additions & 2 deletions NoRM/Protocol/Messages/Message.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Norm.Protocol
/// </summary>
public class Message
{
protected const int FOUR_MEGABYTES = 4 * 1024 * 1024;
protected const int EIGHT_MEGABYTES = 8 * 1024 * 1024;

/// <summary>TODO::Description.</summary>
protected string _collection;
Expand Down Expand Up @@ -44,7 +44,7 @@ protected Message(IConnection connection, string fullyQualifiedCollName)
protected static byte[] GetPayload<X>(X data)
{
var payload = BsonSerializer.Serialize(data);
if (payload.Length > FOUR_MEGABYTES)
if (payload.Length > EIGHT_MEGABYTES)
{
throw new DocumentExceedsSizeLimitsException<X>(data, payload.Length);
}
Expand Down