File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ public class Bytes extends BSON {
70
70
*/
71
71
public static final int QUERYOPTION_TAILABLE = 1 << 1 ;
72
72
/**
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 .
74
74
*/
75
75
public static final int QUERYOPTION_SLAVEOK = 1 << 2 ;
76
76
/**
Original file line number Diff line number Diff line change 21
21
22
22
package org .bson .types ;
23
23
24
+ import org .bson .BSON ;
25
+
24
26
/**
25
27
generic binary holder
26
28
*/
@@ -31,7 +33,7 @@ public class Binary {
31
33
* @param data raw data
32
34
*/
33
35
public Binary ( byte [] data ){
34
- this (( byte ) 0 , data );
36
+ this (BSON . B_GENERAL , data );
35
37
}
36
38
37
39
/**
You can’t perform that action at this time.
0 commit comments