]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: include marker and truncated flag in data log list api
authorJosh Durgin <josh.durgin@inktank.com>
Thu, 24 Oct 2013 15:26:19 +0000 (08:26 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Fri, 1 Nov 2013 23:17:30 +0000 (16:17 -0700)
commit8916648521e2362a54eed0f5ebe078a269e4d703
tree419c1acde6f0678e16c81fce3ad7bc2593f31904
parenta49c064b7a1b4083818b6f950d7e0aade71c6afe
rgw: include marker and truncated flag in data log list api

Consumers of this api need to know their position in the log. It's
readily available when fetching the log, so return it.  Without the
marker in this call, a client could not easily or efficiently figure
out its position in the log, since it would require getting the global
last marker in the log, and then reading all the log entries.

This would be slow for large logs, and would be subject to races that
would cause potentially very expensive duplicate work.

Returning this atomically while fetching the log entries simplifies
all of this.

Fixes: #6615
Backport: dumpling
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
(cherry picked from commit c275912509255f8bb4c854e181318b45ab0f8564)
src/cls/log/cls_log_client.cc
src/cls/log/cls_log_client.h
src/rgw/rgw_bucket.cc
src/rgw/rgw_bucket.h
src/rgw/rgw_rados.cc
src/rgw/rgw_rados.h
src/rgw/rgw_rest_log.cc
src/rgw/rgw_rest_log.h