@@ -269,15 +269,14 @@ 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 ;
272+ /**
273+ * Gets the fsync flag (fsync to disk on the server)
274+ * @return
275+ */
276+ public boolean fsync (){
277+ return _fsync ;
278278 }
279-
280-
279+
281280 /**
282281 * Returns whether network error may be raised (w >= 0)
283282 * @return
@@ -326,7 +325,7 @@ public static WriteConcern valueOf(String name) {
326325
327326 @ Override
328327 public String toString (){
329- return "WriteConcern " + getCommand () + " / (Continue Inserting on Errors? " + getContinueOnErrorInsert () + ")" ;
328+ return "WriteConcern " + getCommand () + " / (Continue Inserting on Errors? " + getContinueOnErrorForInsert () + ")" ;
330329 }
331330
332331 @ Override
@@ -335,7 +334,7 @@ public boolean equals( Object o ){
335334 if ( o == null || getClass () != o .getClass () ) return false ;
336335
337336 WriteConcern that = (WriteConcern ) o ;
338- return _fsync == that ._fsync && _wValue == that ._wValue && _wtimeout == that ._wtimeout && _j == that ._j && _continueOnErrorInsert == that ._continueOnErrorInsert ;
337+ return _fsync == that ._fsync && _wValue == that ._wValue && _wtimeout == that ._wtimeout && _j == that ._j && _continueOnErrorForInsert == that ._continueOnErrorForInsert ;
339338 }
340339
341340 /**
@@ -356,18 +355,18 @@ public boolean getJ() {
356355
357356 /**
358357 * Sets the "continue inserts on error" mode
359- * @param continueOnErrorInsert
358+ * @param continueOnErrorForInsert
360359 */
361- public void setContinueOnErrorInsert (boolean continueOnErrorInsert ) {
362- this ._continueOnErrorInsert = continueOnErrorInsert ;
360+ public void setContinueOnErrorForInsert (boolean continueOnErrorForInsert ) {
361+ this ._continueOnErrorForInsert = continueOnErrorForInsert ;
363362 }
364363
365364 /**
366365 * Gets the "continue inserts on error" mode
367366 * @return
368367 */
369- public boolean getContinueOnErrorInsert () {
370- return _continueOnErrorInsert ;
368+ public boolean getContinueOnErrorForInsert () {
369+ return _continueOnErrorForInsert ;
371370 }
372371
373372 /**
@@ -387,7 +386,7 @@ public static Majority majorityWriteConcern( int wtimeout, boolean fsync, boolea
387386 int _wtimeout = 0 ;
388387 boolean _fsync = false ;
389388 boolean _j = false ;
390- boolean _continueOnErrorInsert = false ;
389+ boolean _continueOnErrorForInsert = false ;
391390
392391 public static class Majority extends WriteConcern {
393392
0 commit comments