Skip to content

Commit 9845e4a

Browse files
committed
small comment fix
1 parent 8e9ffd9 commit 9845e4a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/main/com/mongodb/Bytes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public class Bytes extends BSON {
7070
*/
7171
public static final int QUERYOPTION_TAILABLE = 1 << 1;
7272
/**
73-
* Allow query of replica slave. Normally these return an error except for namespace "local".
73+
* When turned on, read queries will be directed to slave servers instead of the primary server.
7474
*/
7575
public static final int QUERYOPTION_SLAVEOK = 1 << 2;
7676
/**

src/main/org/bson/types/Binary.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121

2222
package org.bson.types;
2323

24+
import org.bson.BSON;
25+
2426
/**
2527
generic binary holder
2628
*/
@@ -31,7 +33,7 @@ public class Binary {
3133
* @param data raw data
3234
*/
3335
public Binary( byte[] data ){
34-
this((byte)0, data);
36+
this(BSON.B_GENERAL, data);
3537
}
3638

3739
/**

0 commit comments

Comments
 (0)