From: Sage Weil Date: Mon, 25 Feb 2019 18:41:01 +0000 (-0600) Subject: messages/MMonMgrDigest: use set_data() to avoid screwing up byte_throttler X-Git-Tag: v14.1.1~137^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=df32d57638ecfcfe2bc88799221e0a85ad37cd38;p=ceph-ci.git messages/MMonMgrDigest: use set_data() to avoid screwing up byte_throttler Use the existing set_data() helper to avoid breaking the byte_throttler accounting. Fixes e4ae368ff7a5396194f8bdd5692429af5457998b Fixes: http://tracker.ceph.com/issues/38295 Signed-off-by: Sage Weil --- diff --git a/src/messages/MMonMgrReport.h b/src/messages/MMonMgrReport.h index 818511a37ba..097fa014537 100644 --- a/src/messages/MMonMgrReport.h +++ b/src/messages/MMonMgrReport.h @@ -70,7 +70,7 @@ public: decode(digest, p); bufferlist bl; encode(digest, bl, features); - data.swap(bl); + set_data(bl); } } void decode_payload() override {