]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/PrimaryLogPG: rebuild attrs from clients 22858/head
authorSage Weil <sage@redhat.com>
Wed, 4 Jul 2018 19:19:04 +0000 (14:19 -0500)
committerSage Weil <sage@redhat.com>
Wed, 4 Jul 2018 19:19:04 +0000 (14:19 -0500)
commit0a0f8d5e6fa8276f06a9b7a7b18ea6f15fa8cb86
tree4a274be13f60712b15cf976143ddfa916c2faa7a
parent5494e7229a83de27603c8abe1d227a41b53668a9
osd/PrimaryLogPG: rebuild attrs from clients

Ensure that buffers coming in via client ops are rebuilt before populating
the PGTransaction.  This ensures that we don't pin the raw buffers for
the entire incoming message in memory.

In the past we've addressed this issue at the ObjectStore layer, but we
did not consider the attr_cache in ObjectContext.  Rebuilding the buffers
at this point will sanitize any incoming attribute before it reaches
either PGBackend or ObjectContext object_cache or the ObjectStore
implementation.

Fixes: http://tracker.ceph.com/issues/24768
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/PGTransaction.h