X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=store.h;h=a9d6365c4525e271e498275f6a4aa93397a499f3;hb=08147fb0bc1d09610b05f3f7d54eda88ef5776ec;hp=6fec7634fe51fc3113612f75cf22aaf246a55336;hpb=c26f44fe8cd3eeec0d9d849cb2e639d484de5887;p=cumulus.git diff --git a/store.h b/store.h index 6fec763..a9d6365 100644 --- a/store.h +++ b/store.h @@ -59,7 +59,6 @@ public: private: size_t size; std::string segment_name; - std::ostringstream checksums; TAR *t; }; @@ -74,8 +73,7 @@ public: // used to control object placement; objects with different group // parameters are kept in separate segments. std::string write_object(const char *data, size_t len, - const std::string &group = "", - const std::list &refs = norefs); + const std::string &group = ""); // Ensure all segments have been fully written. void sync(); @@ -91,10 +89,6 @@ private: std::string path; std::map segments; - // An empty list which can be used as an argument to write_object to - // indicate that this object depends on no others. - static std::list norefs; - // Ensure that all segments in the given group have been fully written. void close_segment(const std::string &group); @@ -132,12 +126,6 @@ public: // segment. Until that time, its name cannot be determined. std::string get_name() const { return name; } - // Logically, one object may reference other objects (such as a metadata - // listing referncing actual file data blocks). Such references should be - // noted explicitly. It may eventually be used to build up a tree of - // checksums for later verifying integrity. - void add_reference(const LbsObject *o); - private: std::string group; const char *data;