RGWDataSyncModule *get_data_handler() override {
return &data_handler;
}
+ bool supports_user_writes() override {
+ return true;
+ }
};
int RGWDefaultSyncModule::create_instance(CephContext *cct, const JSONFormattable& config, RGWSyncModuleInstanceRef *instance)
virtual RGWRESTMgr *get_rest_filter(int dialect, RGWRESTMgr *orig) {
return orig;
}
+ virtual bool supports_user_writes() {
+ return false;
+ }
};
typedef std::shared_ptr<RGWSyncModuleInstance> RGWSyncModuleInstanceRef;
RGWRESTMgr *get_rest_filter(int dialect, RGWRESTMgr *orig) override;
RGWRESTConn *get_rest_conn();
std::string get_index_path();
+ bool supports_user_writes() override {
+ return true;
+ }
};
#endif
RGWPSSyncModuleInstance(CephContext *cct, const JSONFormattable& config);
RGWDataSyncModule *get_data_handler() override;
RGWRESTMgr *get_rest_filter(int dialect, RGWRESTMgr *orig) override;
+ bool supports_user_writes() override {
+ return true;
+ }
};
#endif
zone_short_id = current_period->get_map().get_zone_short_id(zone_params->get_id());
+#warning FIXME
writeable_zone = (zone_public_config->tier_type.empty() || zone_public_config->tier_type == "rgw");
/* first build all zones index */