]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/*stores: fix hidden warnings
authorKefu Chai <kchai@redhat.com>
Thu, 28 Jan 2016 10:15:26 +0000 (02:15 -0800)
committerKefu Chai <kchai@redhat.com>
Sat, 30 Jan 2016 17:05:40 +0000 (01:05 +0800)
the CollectionHandle variant methods are hidden by the subclasses
who do not override it. so the compiler complains. by adding
"using" statement we expose them again.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/os/bluestore/BlueRocksEnv.cc
src/os/filestore/FileStore.h
src/os/kstore/KStore.h
src/os/memstore/MemStore.h

index 252bdbd12a40c0dac2c8bfd53d1a3018a8af60a2..c89d57d24fdcdcbdad98c645fd78a18a23a371a0 100644 (file)
@@ -255,6 +255,7 @@ class BlueRocksWritableFile : public rocksdb::WritableFile {
     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.
@@ -273,6 +274,7 @@ class BlueRocksWritableFile : public rocksdb::WritableFile {
   }
 
  protected:
+  using rocksdb::WritableFile::Allocate;
   /*
    * Pre-allocate space for a file.
    */
index 8cf9570f0cd71e7da03a62156b2d96fe968f0a13..fec7600a3b777b0894c4cbea57030e70819f43d7 100644 (file)
@@ -529,12 +529,15 @@ public:
   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,
@@ -547,6 +550,7 @@ public:
                  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);
@@ -598,6 +602,8 @@ public:
   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);
 
@@ -619,6 +625,7 @@ public:
                                   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);
@@ -630,18 +637,24 @@ public:
   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);
index c6c1f3ab7068994ca0087c60eaa81c5a5c98e184..f1fca55e974209d374a6ca7b7f59b1bf95b0e5a3 100644 (file)
@@ -402,12 +402,15 @@ public:
 
   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,
@@ -423,18 +426,23 @@ public:
     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
@@ -442,6 +450,7 @@ public:
     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
@@ -450,6 +459,7 @@ public:
     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
@@ -457,6 +467,7 @@ public:
     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
@@ -465,6 +476,7 @@ public:
     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
@@ -473,6 +485,7 @@ public:
     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
index 823a79f0f335fce748094068b42dfed3227bcab9..06ad0f61a078e4d7405b6dba5868c01130b1338b 100644 (file)
@@ -407,6 +407,7 @@ public:
     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;
@@ -424,10 +425,12 @@ public:
   }
   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
@@ -435,6 +438,7 @@ public:
     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
@@ -443,6 +447,7 @@ public:
     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
@@ -450,6 +455,7 @@ public:
     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
@@ -458,6 +464,7 @@ public:
     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
@@ -466,6 +473,7 @@ public:
     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