Skip to content

Commit

Permalink
fix long strings JAVA-50
Browse files Browse the repository at this point in the history
  • Loading branch information
erh committed Nov 2, 2009
1 parent 5e30255 commit f950b4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/com/mongodb/Bytes.java
Expand Up @@ -101,7 +101,7 @@ public class Bytes {

static protected Charset _utf8 = Charset.forName( "UTF-8" );
/** The maximum number of bytes allowed to be sent to the db at a time */
static protected final int MAX_STRING = 1024 * 512;
static protected final int MAX_STRING = MAX_OBJECT_SIZE - 1024;

/** Gets the type byte for a given object.
* @param o the object
Expand Down

0 comments on commit f950b4d

Please sign in to comment.