]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/PrimaryLogPG: rebuild attrs from clients 22962/head
authorSage Weil <sage@redhat.com>
Wed, 4 Jul 2018 19:19:04 +0000 (14:19 -0500)
committerPrashant D <pdhange@redhat.com>
Tue, 10 Jul 2018 07:26:24 +0000 (03:26 -0400)
commitb9c0fc4a44457891283561d0818b66f05620ec58
treeb44d813e22b996eaeb011a9b750c8893063141ea
parent7d38e15317b840f1c245357fa0395108a0ef5f5d
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>
(cherry picked from commit 0a0f8d5e6fa8276f06a9b7a7b18ea6f15fa8cb86)
src/osd/PGTransaction.h