File tree Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -269,28 +269,24 @@ 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
* Returns whether network error may be raised (w >= 0)
282
274
* @return
283
275
*/
284
276
public boolean raiseNetworkErrors (){
285
- return (Integer ) _wValue >= 0 ;
277
+ if (_wValue instanceof Integer )
278
+ return (Integer ) _wValue >= 0 ;
279
+ return _wValue != null ;
286
280
}
287
281
288
282
/**
289
283
* Returns whether "getlasterror" should be called (w > 0)
290
284
* @return
291
285
*/
292
286
public boolean callGetLastError (){
293
- return (Integer ) _wValue > 0 ;
287
+ if (_wValue instanceof Integer )
288
+ return (Integer ) _wValue > 0 ;
289
+ return _wValue != null ;
294
290
}
295
291
296
292
/**
@@ -321,7 +317,7 @@ public static WriteConcern valueOf(String name) {
321
317
322
318
@ Override
323
319
public String toString (){
324
- return "WriteConcern " + getCommand () + " / (Continue Inserting on Errors? " + continueOnErrorForInsert () + ")" ;
320
+ return "WriteConcern " + getCommand () + " / (Continue Inserting on Errors? " + _continueOnErrorInsert + ")" ;
325
321
}
326
322
327
323
@ Override
You can’t perform that action at this time.
0 commit comments