]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd/: refactor PGLog a bit and add support for rolling back extents
authorSamuel Just <sjust@redhat.com>
Tue, 15 Nov 2016 23:47:37 +0000 (15:47 -0800)
committerSamuel Just <sjust@redhat.com>
Thu, 17 Nov 2016 18:40:19 +0000 (10:40 -0800)
commit5e0ec06376f832d32a6b1af390f925a59b03798f
tree2b76c6d6b3c5e738ed7ffd1c41c0a2df4a070a0e
parentac89594d509c4867488209ff22f0e7f1bb60026b
osd/: refactor PGLog a bit and add support for rolling back extents

It was hard to reason about the validity of the IndexedLog internal
pointers and iterators during updates, so this patch cleans that up
a bunch.  It also moves responsibility for doing rollbacks into
PGBackend.  Finally, it adds support for the new log entry format.

Signed-off-by: Samuel Just <sjust@redhat.com>
12 files changed:
src/osd/OSD.cc
src/osd/PG.cc
src/osd/PG.h
src/osd/PGBackend.cc
src/osd/PGBackend.h
src/osd/PGLog.cc
src/osd/PGLog.h
src/osd/ReplicatedBackend.cc
src/osd/ReplicatedPG.cc
src/osd/ReplicatedPG.h
src/osd/osd_types.h
src/test/osd/TestPGLog.cc