]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: take remote log when it is clearly superior
authorSage Weil <sage.weil@dreamhost.com>
Fri, 20 May 2011 07:27:00 +0000 (00:27 -0700)
committerSage Weil <sage.weil@dreamhost.com>
Fri, 20 May 2011 07:27:00 +0000 (00:27 -0700)
commitbdc371e5936ff21cf96ef94aa7a5ae31fcee8abd
treec5a7c70ada177b57174ca33b7f7c30f56ccfd2e6
parent4c97cb5f347a8b8529cd1aad680cea705682e35a
osd: take remote log when it is clearly superior

I'm hitting a case where the primary is compensating for a replica's
last_complete < log.tail by sending a log+backlog, but the replica
isn't smart enough to take advantage.  In this case,

      replica: log(781'26629,781'26631]
 from primary: log(781'26629,781'26631]+backlog
       result: log(781'26629,781'26631]

Doh!

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/osd/PG.cc