File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -269,6 +269,15 @@ public boolean getFsync(){
269
269
return _fsync ;
270
270
}
271
271
272
+ /**
273
+ * Returns whether (batch) inserts will continue if an error occurs before the end
274
+ * @return boolean
275
+ */
276
+ public boolean continueOnErrorForInsert (){
277
+ return _continueOnErrorInsert ;
278
+ }
279
+
280
+
272
281
/**
273
282
* Returns whether network error may be raised (w >= 0)
274
283
* @return
@@ -317,7 +326,7 @@ public static WriteConcern valueOf(String name) {
317
326
318
327
@ Override
319
328
public String toString (){
320
- return "WriteConcern " + getCommand () + " / (Continue Inserting on Errors? " + _continueOnErrorInsert + ")" ;
329
+ return "WriteConcern " + getCommand () + " / (Continue Inserting on Errors? " + getContinueOnErrorInsert () + ")" ;
321
330
}
322
331
323
332
@ Override
You can’t perform that action at this time.
0 commit comments