Permalink
Browse files

minor: fixing misleading code comment in bson_ext

  • Loading branch information...
1 parent 5064211 commit ef88563a2f20b7adc3d087250a62294de7c91517 @brandonblack brandonblack committed Mar 13, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 ext/cbson/cbson.c
View
@@ -600,7 +600,7 @@ static void write_doc(bson_buffer_t buffer, VALUE hash, VALUE check_keys, VALUE
SAFE_WRITE(buffer, &zero, 1);
length = bson_buffer_get_position(buffer) - start_position;
- // make sure that length doesn't exceed 4MB
+ // make sure that length doesn't exceed the max size (determined by server, defaults to 4mb)
if (length > bson_buffer_get_max_size(buffer)) {
bson_buffer_free(buffer);
rb_raise(InvalidDocument,

0 comments on commit ef88563

Please sign in to comment.