Skip to content

Commit 8f159f3

Browse files
author
Brendan W. McAdams
committed
JAVA-425: restore continueOnErrorForInsert to restore buildability of code
1 parent 224e6b0 commit 8f159f3

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/main/com/mongodb/WriteConcern.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)