projects
/
cumulus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement rudimentary garbage collection.
[cumulus.git]
/
localdb.h
diff --git
a/localdb.h
b/localdb.h
index
33a0029
..
b2a90fd
100644
(file)
--- a/
localdb.h
+++ b/
localdb.h
@@
-54,6
+54,13
@@
public:
const std::string &checksum, int size);
bool GetSegmentChecksum(const std::string &segment,
std::string *seg_path, std::string *seg_checksum);
const std::string &checksum, int size);
bool GetSegmentChecksum(const std::string &segment,
std::string *seg_path, std::string *seg_checksum);
+
+ bool LoadChunkSignatures(ObjectReference ref,
+ void **buf, size_t *len,
+ std::string *algorithm);
+ void StoreChunkSignatures(ObjectReference ref,
+ const void *buf, size_t len,
+ const std::string &algorithm);
private:
sqlite3 *db;
int64_t snapshotid;
private:
sqlite3 *db;
int64_t snapshotid;