]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: rework replica log + RESTful api
authorYehuda Sadeh <yehuda@inktank.com>
Sat, 29 Jun 2013 07:25:09 +0000 (00:25 -0700)
committerYehuda Sadeh <yehuda@inktank.com>
Tue, 2 Jul 2013 22:02:30 +0000 (15:02 -0700)
commite10005c55f2e434617b6a36ccf344733085181f5
tree9937d4102e0b29c4ff9f7c1f22a9c8d52c286f32
parent288088d2739f3bc5473a9e246d780bcf39bc1e75
rgw: rework replica log + RESTful api

Rather than making the caller code handle encode/decode/dump etc,
we introduce an RGWReplicaBounds struct which the RGWReplicaLogger classes
traffic in (instead of the string marker, utime_t time, and list of pairs of
items). Right now this is just referring to cls_replica_log internal structs,
but we use typedefs so that we can cleanly change them over later and avoid
crossing the namespaces too much.

This greatly reduces the amount of code in rgw_rest_replica_log -- hurrah!

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Signed-off-by: Greg Farnum <greg@inktank.com>
src/common/ceph_json.cc
src/include/utime.h
src/rgw/rgw_admin.cc
src/rgw/rgw_replica_log.cc
src/rgw/rgw_replica_log.h
src/rgw/rgw_rest_replica_log.cc
src/rgw/rgw_rest_replica_log.h