]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
PG: start flush on primary only after we process the master log
authorSamuel Just <sam.just@inktank.com>
Wed, 17 Jul 2013 22:04:10 +0000 (15:04 -0700)
committerSamuel Just <sam.just@inktank.com>
Thu, 18 Jul 2013 01:11:39 +0000 (18:11 -0700)
commitb41f1ba48563d1d3fd17c2f62d10103b5d63f305
treefec3973ad1063a0befeb95eb8ed828f1266bca55
parent278c7b59228f614addf830cb0afff4988c9bc8cb
PG: start flush on primary only after we process the master log

Once we start serving reads, stray objects must have already
been removed.  Therefore, we have to flush all operations
up to the transaction writing out the authoritative log.
On replicas, we flush in Stray() if we will not eventually
be activated and in ReplicaActive if we are in the acting
set.  This way a replica won't serve a replica read until
the store is consistent.

Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
src/osd/PG.cc