projects
/
cumulus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Drop the old statcache implementation.
[cumulus.git]
/
metadata.h
diff --git
a/metadata.h
b/metadata.h
index
9325338
..
2b4b2e1
100644
(file)
--- a/
metadata.h
+++ b/
metadata.h
@@
-11,6
+11,8
@@
#define _LBS_METADATA_H
#include <stdio.h>
#define _LBS_METADATA_H
#include <stdio.h>
+#include <sys/types.h>
+#include <sys/stat.h>
#include <list>
#include <string>
#include <sstream>
#include <list>
#include <string>
#include <sstream>
@@
-40,7
+42,12
@@
public:
return ObjectReference::parse(old_metadata_loc);
}
return ObjectReference::parse(old_metadata_loc);
}
+ bool matched() const { return found_match; }
+ bool is_unchanged(const struct stat *stat_buf);
+
dictionary get_old_metadata() const { return old_metadata; }
dictionary get_old_metadata() const { return old_metadata; }
+ std::list<ObjectReference> get_blocks();
+ std::string get_checksum() { return old_metadata["checksum"]; }
private:
void metadata_flush();
private:
void metadata_flush();
@@
-59,6
+66,7
@@
private:
std::ostringstream metadata_root;
// Statcache information read back in from a previous run
std::ostringstream metadata_root;
// Statcache information read back in from a previous run
+ bool found_match; // Result of last call to find
bool old_metadata_eof;
dictionary old_metadata;
std::string old_metadata_loc; // Reference to where the metadata is found
bool old_metadata_eof;
dictionary old_metadata;
std::string old_metadata_loc; // Reference to where the metadata is found