Kristina, thanks for the response!
So, lets say if safe => 3 then,does that mean database will wait for
response until write is applied to single master and 3 slaves there
respective mmapped files?
If its true then, safe => number will take more time to succeed than
safe => boolean depending on number of slaves.
On Aug 26, 3:14 pm, Kristina Chodorow <
krist...@10gen.com> wrote:
> safe and fsync are not the same, here's a rundown of the options:
>
> safe => false: do not wait for a db response
> safe => true: wait for a db response
> safe => num: wait for that many servers to have the write before returning
> fsync => true: fsync the write to disk before returning
>
> fsync=>true implies safe=>true, but not visa versa. If safe=>true,
> fsync=>false, the write could be in successfully applied to a mmapped file
> but not yet written to disk.
>
> Fsync is only applied to the server you're directly connected to, although
> more options may be available in the future.
>
> >
mongodb-user...@googlegroups.com<mongodb-user%2Bunsubscribe@google
groups.com>
> > .