]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: preserve extra_reqids in PGLog
authorSage Weil <sage@redhat.com>
Thu, 29 Jan 2015 19:26:23 +0000 (11:26 -0800)
committerSage Weil <sage@redhat.com>
Thu, 29 Jan 2015 19:29:51 +0000 (11:29 -0800)
commit4d310a8249d64d9aadd7fdfeacbeda826501b0f0
tree75c2c210bc8de5f9ee1cbd491175e75667745c2b
parent2ad229c5a2aeeb9c2483d26d5d97cad6233fee77
osd: preserve extra_reqids in PGLog

The log scraping is unfortunately O(n) in the size of the log.  We can
also follow objects and then the prior_version pointers, but we don't have
a version->entry index at the moment.

Only index by reqid if reqid_is_index.  Always index extra_reqids.
Notably, the PROMOTE op does not return true for reqid_is_indexed, but this
is where the promotion extra_reqids will appear.

Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/PGLog.h
src/osd/osd_types.cc
src/osd/osd_types.h