You just need to wait for the ondisk or complete ack in whatever interface you choose. It won't come back until the data is persisted to all extant copies. -Greg Software Engineer #42 @ http://inktank.com | http://ceph.com
On Mon, Apr 7, 2014 at 4:08 PM, Steven Paster <spas...@actiance.com> wrote: > I am using the Ceph C api to create and update Ceph objects and their > respective omaps and xattributes. I have two requirements: > > Write operations must be written atomically such that either all updates to > an object complete, or, all updates to the object fail. If even one update > fails then the object remains unchanged. > Simultaneously, I need to be assured that all writes have been persisted to > disk on at least two of three replicas. > > I see that there are methods to read/write atomically, and there are methods > for synchronous writes with completion callbacks, but is there a mechanism > for doing both a the same time. Am I overlooking anything? Will any of the > flush_cache calls provide the guarantee I'm looking for? > > Steven Paster > Platform Architect > Actiance Corp. > > > _______________________________________________ > ceph-users mailing list > ceph-users@lists.ceph.com > http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com > _______________________________________________ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com