#include "rgw_sync.h"
#include "rgw_data_sync.h"
#include "rgw_realm_watcher.h"
+#include "rgw_reshard.h"
#include "compressor/Compressor.h"
obj_tombstone_cache = new tombstone_cache_t(cct->_conf->rgw_obj_tombstone_cache_size);
}
+ reshard = new RGWReshard(cct, this);
+
return ret;
}
int RGWRados::bucket_rebuild_index(RGWBucketInfo& bucket_info)
{
+ /* hande on going bucket resharding */
+
librados::IoCtx index_ctx;
map<int, string> bucket_objs;
int r = open_bucket_index(bucket_info, index_ctx, bucket_objs);
class RGWRESTConn;
struct RGWZoneGroup;
struct RGWZoneParams;
+class RGWReshard;
/* flags for put_obj_meta() */
#define PUT_OBJ_CREATE 0x01
cr_registry(NULL),
zone_short_id(0),
rest_master_conn(NULL),
- meta_mgr(NULL), data_log(NULL) {}
+ meta_mgr(NULL), data_log(NULL), reshard(NULL) {}
uint64_t get_new_req_id() {
return ++max_req_id;
RGWDataChangesLog *data_log;
+ RGWReshard *reshard;
+
virtual ~RGWRados() = default;
tombstone_cache_t *get_tombstone_cache() {