@@ -269,15 +269,14 @@ 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 ;
272
+ /**
273
+ * Gets the fsync flag (fsync to disk on the server)
274
+ * @return
275
+ */
276
+ public boolean fsync (){
277
+ return _fsync ;
278
278
}
279
-
280
-
279
+
281
280
/**
282
281
* Returns whether network error may be raised (w >= 0)
283
282
* @return
@@ -326,7 +325,7 @@ public static WriteConcern valueOf(String name) {
326
325
327
326
@ Override
328
327
public String toString (){
329
- return "WriteConcern " + getCommand () + " / (Continue Inserting on Errors? " + getContinueOnErrorInsert () + ")" ;
328
+ return "WriteConcern " + getCommand () + " / (Continue Inserting on Errors? " + getContinueOnErrorForInsert () + ")" ;
330
329
}
331
330
332
331
@ Override
@@ -335,7 +334,7 @@ public boolean equals( Object o ){
335
334
if ( o == null || getClass () != o .getClass () ) return false ;
336
335
337
336
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 ;
339
338
}
340
339
341
340
/**
@@ -356,18 +355,18 @@ public boolean getJ() {
356
355
357
356
/**
358
357
* Sets the "continue inserts on error" mode
359
- * @param continueOnErrorInsert
358
+ * @param continueOnErrorForInsert
360
359
*/
361
- public void setContinueOnErrorInsert (boolean continueOnErrorInsert ) {
362
- this ._continueOnErrorInsert = continueOnErrorInsert ;
360
+ public void setContinueOnErrorForInsert (boolean continueOnErrorForInsert ) {
361
+ this ._continueOnErrorForInsert = continueOnErrorForInsert ;
363
362
}
364
363
365
364
/**
366
365
* Gets the "continue inserts on error" mode
367
366
* @return
368
367
*/
369
- public boolean getContinueOnErrorInsert () {
370
- return _continueOnErrorInsert ;
368
+ public boolean getContinueOnErrorForInsert () {
369
+ return _continueOnErrorForInsert ;
371
370
}
372
371
373
372
/**
@@ -387,7 +386,7 @@ public static Majority majorityWriteConcern( int wtimeout, boolean fsync, boolea
387
386
int _wtimeout = 0 ;
388
387
boolean _fsync = false ;
389
388
boolean _j = false ;
390
- boolean _continueOnErrorInsert = false ;
389
+ boolean _continueOnErrorForInsert = false ;
391
390
392
391
public static class Majority extends WriteConcern {
393
392
0 commit comments