]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/osd_types: kill undefined_shard() method of pg_shard_t 10610/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Mon, 8 Aug 2016 08:28:32 +0000 (16:28 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Thu, 11 Aug 2016 22:35:17 +0000 (06:35 +0800)
It is never used by anyone.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/osd/osd_types.h

index c2f49b46a48525a774a4699de6ff501989ca1d3d..7d141b725f9d5db021a6d32ce685b918abdd580f 100644 (file)
@@ -95,9 +95,6 @@ struct pg_shard_t {
   pg_shard_t() : osd(-1), shard(shard_id_t::NO_SHARD) {}
   explicit pg_shard_t(int osd) : osd(osd), shard(shard_id_t::NO_SHARD) {}
   pg_shard_t(int osd, shard_id_t shard) : osd(osd), shard(shard) {}
-  static pg_shard_t undefined_shard() {
-    return pg_shard_t(-1, shard_id_t::NO_SHARD);
-  }
   bool is_undefined() const {
     return osd == -1;
   }
@@ -1353,7 +1350,6 @@ public:
   void set_flag(uint64_t f) { flags |= f; }
   void unset_flag(uint64_t f) { flags &= ~f; }
 
-  /// This method will later return true for ec pools as well
   bool ec_pool() const {
     return type == TYPE_ERASURE;
   }