]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: add _fastinfo PG attr for common pg_info_t updates
authorSage Weil <sage@redhat.com>
Mon, 26 Sep 2016 15:39:41 +0000 (11:39 -0400)
committerSage Weil <sage@redhat.com>
Tue, 18 Oct 2016 13:26:31 +0000 (09:26 -0400)
commit1d5dc29a137df894fb9affdcffa7b35dc1a84f42
tree0062286520210711f8ded1f4f7a467b77c35e9fc
parent203a7212984991b88d7011b4c1d104c7462cec1f
osd: add _fastinfo PG attr for common pg_info_t updates

For most IO operations we only update a handful of fields
in the pg_info_t structure.  However, the full struct,
when encoded, is on the order of 800 bytes.

This adds a new attribute, _fastinfo, which contains only
the most commonly updated fields.  When present, the
fastinfo fields should be overlayed on top of the full
info struct contained in the existing info attr.  If
a field outside of the "fast" set is updated, we clear
the fastinfo attribute and update the full info attr.

Signed-off-by: Sage Weil <sage@redhat.com>
src/common/config_opts.h
src/osd/OSD.cc
src/osd/PG.cc
src/osd/PG.h
src/osd/osd_types.h
src/tools/ceph_objectstore_tool.cc