From e6c084345b21b129437e05747b9888e827514279 Mon Sep 17 00:00:00 2001 From: Raul E Rangel Date: Mon, 14 May 2012 14:20:51 -0600 Subject: [PATCH] Fixed a typo --- docs/WRITE_CONCERN.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/WRITE_CONCERN.md b/docs/WRITE_CONCERN.md index c88dddc..16759dc 100644 --- a/docs/WRITE_CONCERN.md +++ b/docs/WRITE_CONCERN.md @@ -9,7 +9,7 @@ Write concern is set using the `:safe` option. There are several possible option @collection.save({:doc => 'foo'}, :safe => {:w => 2, :wtimeout => 200}) @collection.save({:doc => 'foo'}, :safe => {:w => 2, :wtimeout => 200, :j => true}) -The first, `true`, simply indicates that we should request a response from the server to ensure that to errors have occurred. The second, `{:w => 2}`, forces the server to wait until at least two servers have recorded the write. The third does the same but will time out if the replication can't be completed in 200 milliseconds. +The first, `true`, simply indicates that we should request a response from the server to ensure that no errors have occurred. The second, `{:w => 2}`, forces the server to wait until at least two servers have recorded the write. The third does the same but will time out if the replication can't be completed in 200 milliseconds. Setting a value for `wtimeout` is encouraged. Finally, the fourth example forces the journal to sync to disk if journaling is enabled.