]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/MonClient: should update sub_sent with sub_new
authorKefu Chai <kchai@redhat.com>
Fri, 12 Aug 2016 11:19:51 +0000 (19:19 +0800)
committerLoic Dachary <ldachary@redhat.com>
Sun, 21 Aug 2016 20:23:18 +0000 (22:23 +0200)
commit4d37cfb6eed1737b21d9f3f18eee6169f48445b2
treebbfbd66bb23348d374589bf24fe61d798fc24038
parentb98e27c42f29f4fa44cbe7f4b7d9ab3633404f0c
mon/MonClient: should update sub_sent with sub_new

std::map::insert() does not overwrite existing items with the same key.
so we need to do this in a different way. and we will check sub_sent
aftewards, so we need to keep an updated sub_sent around.

Fixes: http://tracker.ceph.com/issues/17023
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 550814900ebca9dd89e088b9abe24f66eb5e3e6d)
src/mon/MonClient.cc