return rocksdb::Status::OK();
}
+ using rocksdb::WritableFile::RangeSync;
// Sync a file range with disk.
// offset is the starting byte of the file range to be synchronized.
// nbytes specifies the length of the range to be synchronized.
}
protected:
+ using rocksdb::WritableFile::Allocate;
/*
* Pre-allocate space for a file.
*/
int pick_object_revision_lt(ghobject_t& oid) {
return 0;
}
+ using ObjectStore::exists;
bool exists(const coll_t& cid, const ghobject_t& oid);
+ using ObjectStore::stat;
int stat(
const coll_t& cid,
const ghobject_t& oid,
struct stat *st,
bool allow_eio = false);
+ using ObjectStore::read;
int read(
const coll_t& cid,
const ghobject_t& oid,
map<uint64_t, uint64_t> *m);
int _do_seek_hole_data(int fd, uint64_t offset, size_t len,
map<uint64_t, uint64_t> *m);
+ using ObjectStore::fiemap;
int fiemap(const coll_t& cid, const ghobject_t& oid, uint64_t offset, size_t len, bufferlist& bl);
int _touch(const coll_t& cid, const ghobject_t& oid);
int snapshot(const string& name);
// attrs
+ using ObjectStore::getattr;
+ using ObjectStore::getattrs;
int getattr(const coll_t& cid, const ghobject_t& oid, const char *name, bufferptr &bp);
int getattrs(const coll_t& cid, const ghobject_t& oid, map<string,bufferptr>& aset);
const SequencerPosition &spos);
// collections
+ using ObjectStore::collection_list;
int collection_list(const coll_t& c, ghobject_t start, ghobject_t end,
bool sort_bitwise, int max,
vector<ghobject_t> *ls, ghobject_t *next);
bool collection_empty(const coll_t& c);
// omap (see ObjectStore.h for documentation)
+ using ObjectStore::omap_get;
int omap_get(const coll_t& c, const ghobject_t &oid, bufferlist *header,
map<string, bufferlist> *out);
+ using ObjectStore::omap_get_header;
int omap_get_header(
const coll_t& c,
const ghobject_t &oid,
bufferlist *out,
bool allow_eio = false);
+ using ObjectStore::omap_get_keys;
int omap_get_keys(const coll_t& c, const ghobject_t &oid, set<string> *keys);
+ using ObjectStore::omap_get_values;
int omap_get_values(const coll_t& c, const ghobject_t &oid, const set<string> &keys,
map<string, bufferlist> *out);
+ using ObjectStore::omap_check_keys;
int omap_check_keys(const coll_t& c, const ghobject_t &oid, const set<string> &keys,
set<string> *out);
+ using ObjectStore::get_omap_iterator;
ObjectMap::ObjectMapIterator get_omap_iterator(const coll_t& c, const ghobject_t &oid);
int _create_collection(const coll_t& c, const SequencerPosition &spos);
int statfs(struct statfs *buf);
+ using ObjectStore::exists;
bool exists(const coll_t& cid, const ghobject_t& oid);
+ using ObjectStore::stat;
int stat(
const coll_t& cid,
const ghobject_t& oid,
struct stat *st,
bool allow_eio = false); // struct stat?
+ using ObjectStore::read;
int read(
const coll_t& cid,
const ghobject_t& oid,
bufferlist& bl,
uint32_t op_flags = 0);
+ using ObjectStore::fiemap;
int fiemap(const coll_t& cid, const ghobject_t& oid, uint64_t offset, size_t len, bufferlist& bl);
+ using ObjectStore::getattr;
int getattr(const coll_t& cid, const ghobject_t& oid, const char *name, bufferptr& value);
+ using ObjectStore::getattrs;
int getattrs(const coll_t& cid, const ghobject_t& oid, map<string,bufferptr>& aset);
int list_collections(vector<coll_t>& ls);
bool collection_exists(const coll_t& c);
bool collection_empty(const coll_t& c);
+ using ObjectStore::collection_list;
int collection_list(const coll_t& cid, ghobject_t start, ghobject_t end,
bool sort_bitwise, int max,
vector<ghobject_t> *ls, ghobject_t *next);
+ using ObjectStore::omap_get;
int omap_get(
const coll_t& cid, ///< [in] Collection containing oid
const ghobject_t &oid, ///< [in] Object containing omap
map<string, bufferlist> *out /// < [out] Key to value map
);
+ using ObjectStore::omap_get_header;
/// Get omap header
int omap_get_header(
const coll_t& cid, ///< [in] Collection containing oid
bool allow_eio = false ///< [in] don't assert on eio
);
+ using ObjectStore::omap_get_keys;
/// Get keys defined on oid
int omap_get_keys(
const coll_t& cid, ///< [in] Collection containing oid
set<string> *keys ///< [out] Keys defined on oid
);
+ using ObjectStore::omap_get_values;
/// Get key values
int omap_get_values(
const coll_t& cid, ///< [in] Collection containing oid
map<string, bufferlist> *out ///< [out] Returned keys and values
);
+ using ObjectStore::omap_check_keys;
/// Filters keys into out which are defined on oid
int omap_check_keys(
const coll_t& cid, ///< [in] Collection containing oid
set<string> *out ///< [out] Subset of keys defined on oid
);
+ using ObjectStore::get_omap_iterator;
ObjectMap::ObjectMapIterator get_omap_iterator(
const coll_t& cid, ///< [in] collection
const ghobject_t &oid ///< [in] object
bufferlist& bl,
uint32_t op_flags = 0,
bool allow_eio = false) override;
+ using ObjectStore::fiemap;
int fiemap(const coll_t& cid, const ghobject_t& oid, uint64_t offset, size_t len, bufferlist& bl);
int getattr(const coll_t& cid, const ghobject_t& oid, const char *name,
bufferptr& value) override;
}
bool collection_exists(const coll_t& c);
bool collection_empty(const coll_t& c);
+ using ObjectStore::collection_list;
int collection_list(const coll_t& cid, ghobject_t start, ghobject_t end,
bool sort_bitwise, int max,
vector<ghobject_t> *ls, ghobject_t *next);
+ using ObjectStore::omap_get;
int omap_get(
const coll_t& cid, ///< [in] Collection containing oid
const ghobject_t &oid, ///< [in] Object containing omap
map<string, bufferlist> *out /// < [out] Key to value map
);
+ using ObjectStore::omap_get_header;
/// Get omap header
int omap_get_header(
const coll_t& cid, ///< [in] Collection containing oid
bool allow_eio = false ///< [in] don't assert on eio
);
+ using ObjectStore::omap_get_keys;
/// Get keys defined on oid
int omap_get_keys(
const coll_t& cid, ///< [in] Collection containing oid
set<string> *keys ///< [out] Keys defined on oid
);
+ using ObjectStore::omap_get_values;
/// Get key values
int omap_get_values(
const coll_t& cid, ///< [in] Collection containing oid
map<string, bufferlist> *out ///< [out] Returned keys and values
);
+ using ObjectStore::omap_check_keys;
/// Filters keys into out which are defined on oid
int omap_check_keys(
const coll_t& cid, ///< [in] Collection containing oid
set<string> *out ///< [out] Subset of keys defined on oid
);
+ using ObjectStore::get_omap_iterator;
ObjectMap::ObjectMapIterator get_omap_iterator(
const coll_t& cid, ///< [in] collection
const ghobject_t &oid ///< [in] object