]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
PGBackend: fix and clarify be_select_auth_object 3460/head
authorSamuel Just <sjust@redhat.com>
Thu, 22 Jan 2015 00:25:47 +0000 (16:25 -0800)
committerSamuel Just <sjust@redhat.com>
Thu, 22 Jan 2015 00:32:10 +0000 (16:32 -0800)
commitdc11ef13cef614eb1bb5a546c949df8995e09a74
tree45bc6d4742436fc6e35a684509d74dc66d31344c
parent738f8687d5345965b8c725f9d7f7429aaf28f7a9
PGBackend: fix and clarify be_select_auth_object

Previously, auth would end up containing every object without a
self-evident defect -- even if they did not match each other.  Instead
of filtering out the non-matching items there, be_compare_scrubmaps now
returns one valid object and be_compare_scrubmaps gathers the other
which match it.

We can be smarter by doing this in be_select_auth_object and selecting
the largest matching set, but for now this is simpler.

Fixes: 10524
Signed-off-by: Samuel Just <sjust@redhat.com>
src/osd/PGBackend.cc
src/osd/PGBackend.h