X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Fosd%2FScrubStore.h;fp=src%2Fceph%2Fsrc%2Fosd%2FScrubStore.h;h=0000000000000000000000000000000000000000;hb=7da45d65be36d36b880cc55c5036e96c24b53f00;hp=39c7da67cff4e33e49240a6b79b1cab9af0c06fb;hpb=691462d09d0987b47e112d6ee8740375df3c51b2;p=stor4nfv.git diff --git a/src/ceph/src/osd/ScrubStore.h b/src/ceph/src/osd/ScrubStore.h deleted file mode 100644 index 39c7da6..0000000 --- a/src/ceph/src/osd/ScrubStore.h +++ /dev/null @@ -1,55 +0,0 @@ -// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- -// vim: ts=8 sw=2 smarttab - -#ifndef CEPH_SCRUB_RESULT_H -#define CEPH_SCRUB_RESULT_H - -#include "SnapMapper.h" // for OSDriver -#include "common/map_cacher.hpp" - -namespace librados { - struct object_id_t; -} - -struct inconsistent_obj_wrapper; -struct inconsistent_snapset_wrapper; - -namespace Scrub { - -class Store { -public: - ~Store(); - static Store* create(ObjectStore* store, - ObjectStore::Transaction* t, - const spg_t& pgid, - const coll_t& coll); - void add_object_error(int64_t pool, const inconsistent_obj_wrapper& e); - void add_snap_error(int64_t pool, const inconsistent_snapset_wrapper& e); - bool empty() const; - void flush(ObjectStore::Transaction *); - void cleanup(ObjectStore::Transaction *); - std::vector get_snap_errors(ObjectStore* store, - int64_t pool, - const librados::object_id_t& start, - uint64_t max_return); - std::vector get_object_errors(ObjectStore* store, - int64_t pool, - const librados::object_id_t& start, - uint64_t max_return); -private: - Store(const coll_t& coll, const ghobject_t& oid, ObjectStore* store); - std::vector get_errors(ObjectStore* store, - const string& start, const string& end, - uint64_t max_return); -private: - const coll_t coll; - const ghobject_t hoid; - // a temp object holding mappings from seq-id to inconsistencies found in - // scrubbing - OSDriver driver; - MapCacher::MapCacher backend; - map results; -}; -} - -#endif // CEPH_SCRUB_RESULT_H