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(){
269269 return _fsync ;
270270 }
271271
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+
272281 /**
273282 * Returns whether network error may be raised (w >= 0)
274283 * @return
@@ -317,7 +326,7 @@ public static WriteConcern valueOf(String name) {
317326
318327 @ Override
319328 public String toString (){
320- return "WriteConcern " + getCommand () + " / (Continue Inserting on Errors? " + _continueOnErrorInsert + ")" ;
329+ return "WriteConcern " + getCommand () + " / (Continue Inserting on Errors? " + getContinueOnErrorInsert () + ")" ;
321330 }
322331
323332 @ Override
You can’t perform that action at this time.
0 commit comments