]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: remove unused class read_log_and_missing_error 26057/head
authorYao Zongyou <yaozongyou@vip.qq.com>
Mon, 21 Jan 2019 13:10:12 +0000 (21:10 +0800)
committerYao Zongyou <yaozongyou@vip.qq.com>
Mon, 21 Jan 2019 13:10:12 +0000 (21:10 +0800)
Signed-off-by: Yao Zongyou <yaozongyou@vip.qq.com>
src/osd/PGLog.h

index fb7d9f82e413004f8d5d339724fdd7e380c3cc17..70840c5aef147c80dc1e1e80163b4d60f988fb2f 100644 (file)
@@ -60,19 +60,6 @@ struct PGLog : DoutPrefixProvider {
     virtual ~LogEntryHandler() {}
   };
 
-  /* Exceptions */
-  class read_log_and_missing_error : public buffer::error {
-  public:
-    explicit read_log_and_missing_error(const char *what) {
-      snprintf(buf, sizeof(buf), "read_log_and_missing_error: %s", what);
-    }
-    const char *what() const throw () override {
-      return buf;
-    }
-  private:
-    char buf[512];
-  };
-
 public:
   /**
    * IndexLog - adds in-memory index of the log, by oid.