]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
PGLog::proc_replica_log: _merge_divergent_entries based on truncated olog
authorSamuel Just <sam.just@inktank.com>
Sun, 2 Mar 2014 21:42:16 +0000 (13:42 -0800)
committerSamuel Just <sam.just@inktank.com>
Tue, 4 Mar 2014 00:05:16 +0000 (16:05 -0800)
commit200e2964ea989a3f2b06b597ce03682bf522bcb7
tree307a7983906ab43fc85472a5b2531dd19cc4612e
parentb0357abcae5cedc707435a1201cfd7828f51f286
PGLog::proc_replica_log: _merge_divergent_entries based on truncated olog

We can't merge using the primary's log since we haven't decided whether
to send them a complete log yet.  Thus, merge based on the truncated olog
rather than the primary's log.  This is a consequence of the division
between trimming divergent entries in peering/unfound search and sending
a complete log to actual members of the actingbackfill set in activate().
_merge_divergent_entries on the truncated log and add_next_event() on the
newer entries result in the same missing/log regardless of the order in
which they are performed.

Signed-off-by: Samuel Just <sam.just@inktank.com>
src/osd/PGLog.cc