]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: initialize oi.oloc if on-disk value is bogus
authorSage Weil <sage.weil@dreamhost.com>
Tue, 10 May 2011 15:22:34 +0000 (08:22 -0700)
committerSage Weil <sage.weil@dreamhost.com>
Tue, 10 May 2011 15:22:34 +0000 (08:22 -0700)
commitd006c6f2c0aa97c894f631a33d667460fcb0a72d
treeb46955548b75bfdd0f579164b7b7f4d81d71036b
parente00a82440d24a5f5faae4ab120f8e81d1e8f0ffb
osd: initialize oi.oloc if on-disk value is bogus

If the on-disk locator is undefined (upgrade of an old cluster?) initialize
the oloc fields based on the PG::Info.

Reported-by: ar Fred <ar.fred@yahoo.com>
Tested-by: ar Fred <ar.fred@yahoo.com>
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/osd/ReplicatedPG.cc