]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
messages/MMonMgrDigest: use set_data() to avoid screwing up byte_throttler
authorSage Weil <sage@redhat.com>
Mon, 25 Feb 2019 18:41:01 +0000 (12:41 -0600)
committerSage Weil <sage@redhat.com>
Mon, 25 Feb 2019 18:41:59 +0000 (12:41 -0600)
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 <sage@redhat.com>
src/messages/MMonMgrReport.h

index 818511a37baf80e0aa57655ca9b90bbe5ec6b7b0..097fa0145377c13b456bd67dd08c58e048906e4a 100644 (file)
@@ -70,7 +70,7 @@ public:
       decode(digest, p);
       bufferlist bl;
       encode(digest, bl, features);
-      data.swap(bl);
+      set_data(bl);
     }
   }
   void decode_payload() override {