title: why WriteConcern is being ignored in MongoDB Java driver?
body: <p>I'm trying to execute a blocking call to <code>db.collection.insert(List&lt;DBObject&gt;, WriteConcern)</code> method with the MongoDB java driver. No matter what I use in WriteConcern: <code>SAFE</code>, <code>FSYNC_SAFE</code>, <code>FSYNCED</code>, <code>ACKNOWLEDGED</code>, ... I can't grant the write has been performed...at least not the way I'm doing it right now. Check the code:</p>
  
  <pre><code>WriteResult result = collection.insert(list, WriteConcern.FSYNC_SAFE);
  if (result.getN()&gt; 0){      
      System.out.println("Alleluyah!");
  return true;
  }
  </code></pre>
  
  <p>From what I've read <a href="http://www.littlelostmanuals.com/2011/11/overview-of-basic-mongodb-java-write.html" rel="nofollow">here</a>, <code>FSYNC_SAFE</code>, should be the way to go... The data is being written, but the call to <code>result.getN()</code> is always zero. If there is no way to check if a write has been completed...</p>
  
  <p>Why create the <code>getN()</code> method in the first place?? Any idea of what I'm doing wrong? I do need to check this insert has been performed. I can query the collection and check, but it just looks overkill to me...</p>
  
  <p>Thanks!</p>