]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/erasure-code/isa/ErasureCodeIsa.h
update sources to v12.1.1
[ceph.git] / ceph / src / erasure-code / isa / ErasureCodeIsa.h
index 17ba4ff30e00107d8e5a5abb40ede79dcd86adcf..d67b918f79ea8cfda71bc9a58df49edf540c2da1 100644 (file)
 #define CEPH_ERASURE_CODE_ISA_L_H
 
 // -----------------------------------------------------------------------------
-#include "common/Mutex.h"
 #include "erasure-code/ErasureCode.h"
 #include "ErasureCodeIsaTableCache.h"
 // -----------------------------------------------------------------------------
-#include <list>
-// -----------------------------------------------------------------------------
-
-#define DEFAULT_RULESET_ROOT "default"
-#define DEFAULT_RULESET_FAILURE_DOMAIN "host"
 
 class ErasureCodeIsa : public ErasureCode {
 public:
@@ -49,8 +43,6 @@ public:
 
   ErasureCodeIsaTableCache &tcache;
   const char *technique;
-  string ruleset_root;
-  string ruleset_failure_domain;
 
   ErasureCodeIsa(const char *_technique,
                  ErasureCodeIsaTableCache &_tcache) :
@@ -58,9 +50,7 @@ public:
   m(0),
   w(0),
   tcache(_tcache),
-  technique(_technique),
-  ruleset_root(DEFAULT_RULESET_ROOT),
-  ruleset_failure_domain(DEFAULT_RULESET_FAILURE_DOMAIN)
+  technique(_technique)
   {
   }
 
@@ -69,10 +59,6 @@ public:
   {
   }
 
-  int create_ruleset(const string &name,
-                             CrushWrapper &crush,
-                             ostream *ss) const override;
-
   unsigned int
   get_chunk_count() const override
   {
@@ -87,14 +73,14 @@ public:
 
   unsigned int get_chunk_size(unsigned int object_size) const override;
 
-  int encode_chunks(const set<int> &want_to_encode,
-                            map<int, bufferlist> *encoded) override;
+  int encode_chunks(const std::set<int> &want_to_encode,
+                            std::map<int, bufferlist> *encoded) override;
 
-  int decode_chunks(const set<int> &want_to_read,
-                            const map<int, bufferlist> &chunks,
-                            map<int, bufferlist> *decoded) override;
+  int decode_chunks(const std::set<int> &want_to_read,
+                            const std::map<int, bufferlist> &chunks,
+                            std::map<int, bufferlist> *decoded) override;
 
-  int init(ErasureCodeProfile &profile, ostream *ss) override;
+  int init(ErasureCodeProfile &profile, std::ostream *ss) override;
 
   virtual void isa_encode(char **data,
                           char **coding,
@@ -112,7 +98,7 @@ public:
 
  private:
   virtual int parse(ErasureCodeProfile &profile,
-                    ostream *ss) = 0;
+                    std::ostream *ss) = 0;
 };
 
 // -----------------------------------------------------------------------------
@@ -161,7 +147,7 @@ public:
 
  private:
   int parse(ErasureCodeProfile &profile,
-                    ostream *ss) override;
+                    std::ostream *ss) override;
 };
 
 #endif