]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
logclient: use the seq id of the 1st log entry when resetting session 14927/head
authorKefu Chai <kchai@redhat.com>
Wed, 3 May 2017 09:04:34 +0000 (17:04 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 3 May 2017 09:04:38 +0000 (17:04 +0800)
commit4da64aa5ab3a849c2838c49aa0deb4a540fed3e0
tree1c194d91be2b99730a299551e5a4c593269c75a2
parentb4655405d5e025cfc2c2027daa655b5b61dd5a4f
logclient: use the seq id of the 1st log entry when resetting session

because do_log() does not update last_log (see LogClient::get_next_seq())
and log_queue atomically, and log_queue is updated *after* last_log, so
we can not use them to figure out the number of log entries to be sent.
so, we choose to trust log_queue in this change.

Fixes: http://tracker.ceph.com/issues/19427
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/common/LogClient.cc