Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
bool in_extra_data; /* in-memory only member, does not serialize */
rgw_obj() : in_extra_data(false) {}
- rgw_obj(const char *b, const char *o) : in_extra_data(false) {
- rgw_bucket _b(b);
- std::string _o(o);
- init(_b, _o);
- }
- rgw_obj(rgw_bucket& b, const char *o) : in_extra_data(false) {
- std::string _o(o);
- init(b, _o);
- }
rgw_obj(rgw_bucket& b, const std::string& o) : in_extra_data(false) {
init(b, o);
}
set_key(orig_obj);
}
- string loc() {
- if (orig_key.empty())
- return orig_obj;
- else
- return orig_key;
- }
-
/**
* Translate a namespace-mangled object name to the user-facing name
* existing in the given namespace.