Skip to content

Commit

Permalink
Bluestore.h:Added 'override' to virtual functions
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
  • Loading branch information
stiopaa1 committed Mar 2, 2016
1 parent c1e41af commit 25d5e2a
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions src/os/bluestore/BlueStore.h
Expand Up @@ -623,41 +623,41 @@ class BlueStore : public ObjectStore {
BlueStore(CephContext *cct, const string& path);
~BlueStore();

string get_type() {
string get_type() override {
return "bluestore";
}

bool needs_journal() { return false; };
bool wants_journal() { return false; };
bool allows_journal() { return false; };
bool needs_journal() override { return false; };
bool wants_journal() override { return false; };
bool allows_journal() override { return false; };

static int get_block_device_fsid(const string& path, uuid_d *fsid);

bool test_mount_in_use();
bool test_mount_in_use() override;

int mount();
int umount();
int mount() override;
int umount() override;
void _sync();

int fsck();
int fsck() override;

unsigned get_max_object_name_length() {
unsigned get_max_object_name_length() override {
return 4096;
}
unsigned get_max_attr_name_length() {
unsigned get_max_attr_name_length() override {
return 256; // arbitrary; there is no real limit internally
}

int mkfs();
int mkjournal() {
int mkfs() override;
int mkjournal() override {
return 0;
}

public:
int statfs(struct statfs *buf);
int statfs(struct statfs *buf) override;

bool exists(const coll_t& cid, const ghobject_t& oid);
bool exists(CollectionHandle &c, const ghobject_t& oid);
bool exists(const coll_t& cid, const ghobject_t& oid) override;
bool exists(CollectionHandle &c, const ghobject_t& oid) override;
int stat(
const coll_t& cid,
const ghobject_t& oid,
Expand Down Expand Up @@ -710,9 +710,9 @@ class BlueStore : public ObjectStore {

CollectionHandle open_collection(const coll_t &c) override;

bool collection_exists(const coll_t& c);
bool collection_empty(const coll_t& c);
int collection_bits(const coll_t& c);
bool collection_exists(const coll_t& c) override;
bool collection_empty(const coll_t& c) override;
int collection_bits(const coll_t& c) override;

int collection_list(const coll_t& cid, ghobject_t start, ghobject_t end,
bool sort_bitwise, int max,
Expand Down Expand Up @@ -758,7 +758,7 @@ class BlueStore : public ObjectStore {
CollectionHandle &c, ///< [in] Collection containing oid
const ghobject_t &oid, ///< [in] Object containing omap
set<string> *keys ///< [out] Keys defined on oid
);
) override;

/// Get key values
int omap_get_values(
Expand Down Expand Up @@ -797,22 +797,22 @@ class BlueStore : public ObjectStore {
const ghobject_t &oid ///< [in] object
) override;

void set_fsid(uuid_d u) {
void set_fsid(uuid_d u) override {
fsid = u;
}
uuid_d get_fsid() {
uuid_d get_fsid() override {
return fsid;
}

objectstore_perf_stat_t get_cur_stats() {
objectstore_perf_stat_t get_cur_stats() override {
return objectstore_perf_stat_t();
}

int queue_transactions(
Sequencer *osr,
vector<Transaction>& tls,
TrackedOpRef op = TrackedOpRef(),
ThreadPool::TPHandle *handle = NULL);
ThreadPool::TPHandle *handle = NULL) override;

private:
// --------------------------------------------------------
Expand Down

0 comments on commit 25d5e2a

Please sign in to comment.