diff options
author | xie xingguo <xie.xingguo@zte.com.cn> | 2016-05-25 05:25:15 +0200 |
---|---|---|
committer | xie xingguo <xie.xingguo@zte.com.cn> | 2016-05-25 11:36:08 +0200 |
commit | 518f53a31248d4b1a98ef5bf0969bf5397c7c3aa (patch) | |
tree | a7ff9c225711c00781c8f020294cbdb1e2477e77 /src/librados | |
parent | librados: reduce cpu burning when try to get first osdmap from monitor (diff) | |
download | ceph-518f53a31248d4b1a98ef5bf0969bf5397c7c3aa.tar.xz ceph-518f53a31248d4b1a98ef5bf0969bf5397c7c3aa.zip |
librados: fix potential message leak
Not sure we'll ever receive a message like CEPH_MSG_MDS_MAP,
but since this indicates a potential message leak, it shall
deserve the fix.
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
Diffstat (limited to 'src/librados')
-rw-r--r-- | src/librados/RadosClient.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/librados/RadosClient.cc b/src/librados/RadosClient.cc index b08f887728b..39bcedd14e9 100644 --- a/src/librados/RadosClient.cc +++ b/src/librados/RadosClient.cc @@ -490,6 +490,7 @@ bool librados::RadosClient::_dispatch(Message *m) break; case CEPH_MSG_MDS_MAP: + m->put(); break; case MSG_LOG: |