]> git.apps.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)
committerSage Weil <sage@inktank.com>
Wed, 24 Jul 2013 23:20:35 +0000 (16:20 -0700)
commit7ffc65fc4d7d842954cf791c016fd2711f644a9c
treeb2d1ad0b7413204df7e8e2c5da509e575da00d28
parent850da0890da5df7e670df9268afe420d0c906c38
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>
(cherry picked from commit b41f1ba48563d1d3fd17c2f62d10103b5d63f305)
src/osd/PG.cc