const hobject_t &hoid, ///< [in] object to write
map<string, bufferlist> &keys ///< [in] omap keys, may be cleared
) { assert(0); }
+ virtual void omap_setkeys(
+ const hobject_t &hoid, ///< [in] object to write
+ bufferlist &keys_bl ///< [in] omap keys, may be cleared
+ ) { assert(0); }
virtual void omap_rmkeys(
const hobject_t &hoid, ///< [in] object to write
set<string> &keys ///< [in] omap keys, may be cleared
) { assert(0); }
+ virtual void omap_rmkeys(
+ const hobject_t &hoid, ///< [in] object to write
+ bufferlist &keys_bl ///< [in] omap keys, may be cleared
+ ) { assert(0); }
virtual void omap_clear(
const hobject_t &hoid ///< [in] object to clear omap
) { assert(0); }
written += p->first.length() + p->second.length();
return t->omap_setkeys(get_coll(hoid), ghobject_t(hoid), keys);
}
+ void omap_setkeys(
+ const hobject_t &hoid,
+ bufferlist &keys_bl
+ ) {
+ written += keys_bl.length();
+ return t->omap_setkeys(get_coll(hoid), ghobject_t(hoid), keys_bl);
+ }
void omap_rmkeys(
const hobject_t &hoid,
set<string> &keys
) {
t->omap_rmkeys(get_coll(hoid), ghobject_t(hoid), keys);
}
+ void omap_rmkeys(
+ const hobject_t &hoid,
+ bufferlist &keys_bl
+ ) {
+ t->omap_rmkeys(get_coll(hoid), ghobject_t(hoid), keys_bl);
+ }
void omap_clear(
const hobject_t &hoid
) {