I talked to the couchbase server support folks, and they pointed me to the options for the Set command which control whether it's persisted to disk or not before returning.
See https://github.com/couchbaselabs/go-couchbase/blob/master/client.go#L336-L353 @StevenBarlow: so to get what you were asking for (at least partially), you'd want to make sure those write options were set to Persist. On Wed, Oct 8, 2014 at 4:29 PM, Jens Alfke <[email protected]> wrote: > > On Oct 8, 2014, at 2:27 PM, Traun Leyden <[email protected]> wrote: > > When I do a POST/PUT to Sync Gateway, does the call return after it's been > "fsync'd" on Couchbase Server, or is it more "fire and forget"? > > > Usually it returns after the document has been written to Couchbase > Server. That does not mean it's been persisted to disk; that takes a bit > longer. (Some document writes do wait till the server persists the document > to disk; the details are complicated.) > > —Jens > > -- > You received this message because you are subscribed to the Google Groups > "Couchbase Mobile" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/mobile-couchbase/1C769754-EE1A-422C-92F6-505212124D49%40couchbase.com > <https://groups.google.com/d/msgid/mobile-couchbase/1C769754-EE1A-422C-92F6-505212124D49%40couchbase.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/CACSSHCGf4tvdXOp0PV00o8xmrX7evvCWjGUvKvSZguFFYiJYyg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
