]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/: propogate hit_set history with repop
authorSamuel Just <sam.just@inktank.com>
Thu, 17 Apr 2014 19:27:07 +0000 (12:27 -0700)
committerSamuel Just <sam.just@inktank.com>
Mon, 21 Apr 2014 17:53:04 +0000 (10:53 -0700)
commit5821cc7e55940b1722d35b3f447a9a954c60eb5a
treeba62acab6e1a7866e90093ac9b6d80407d65701b
parent7bb2011542d1fda158d0415bd02da02c620694ef
osd/: propogate hit_set history with repop

We don't actually send the whole info on each repop, just the log
entries, updated stats, and a few other bits.  For hit_set ops, we need
to also communicate the new hit_set history status atomically with the
log entries and the transaction.  Thus, we add a channel for an optional
pg_hit_set_history_t field in PGBackend::submit_transaction interface
and associated messages and implementations to update the hit_set info
field along with the log entries.

This also means that hit_set_(persist|trim) update an
updated_hit_set_history field on the OpContext instead of directly
modifying the info field.

Fixes: #8124
Signed-off-by: Samuel Just <sam.just@inktank.com>
src/messages/MOSDSubOp.h
src/osd/ECBackend.cc
src/osd/ECBackend.h
src/osd/ECMsgTypes.cc
src/osd/ECMsgTypes.h
src/osd/PGBackend.h
src/osd/ReplicatedBackend.cc
src/osd/ReplicatedBackend.h
src/osd/ReplicatedPG.cc
src/osd/ReplicatedPG.h