]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cls_log: always return final marker from log_list
authorJosh Durgin <josh.durgin@inktank.com>
Thu, 24 Oct 2013 15:18:19 +0000 (08:18 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Fri, 1 Nov 2013 23:17:30 +0000 (16:17 -0700)
commita49c064b7a1b4083818b6f950d7e0aade71c6afe
treece85194563f9f45826c37873867eae8955bb11fa
parent90101aea6818c2f43bf31243d912ec9143f68882
cls_log: always return final marker from log_list

There's no reason to restrict returning the marker to the case where
less than the whole log is returned, since there's already a truncated
flag to tell the client what happened.

Giving the client the last marker makes it easy to consume when the
log entries do not contain their own marker. If the last marker is not
returned, the client cannot get the last marker without racing with
updates to the log.

Backport: dumpling
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
(cherry picked from commit e74776f4176470122485a79a4c07e9c12c9fc036)
src/cls/log/cls_log.cc