]> git.apps.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>
Thu, 24 Oct 2013 15:56:07 +0000 (08:56 -0700)
commite74776f4176470122485a79a4c07e9c12c9fc036
tree72c3b2a260c976fe190fe672ce29e41edf338f4f
parentea816c1c2fd47eab647d6fab96c9ca4bfeecd5bb
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>
src/cls/log/cls_log.cc