projects
/
cumulus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Do not store subfile signatures for very short blocks.
[cumulus.git]
/
subfile.cc
diff --git
a/subfile.cc
b/subfile.cc
index
f365c4b
..
4e13005
100644
(file)
--- a/
subfile.cc
+++ b/
subfile.cc
@@
-264,7
+264,8
@@
list<ObjectReference> Subfile::create_incremental(TarSegmentStore *tss,
o->write(tss);
ObjectReference ref = o->get_ref();
db->StoreObject(ref, block_csum, analyzed_len, block_age);
o->write(tss);
ObjectReference ref = o->get_ref();
db->StoreObject(ref, block_csum, analyzed_len, block_age);
- store_block_signatures(ref, new_block_summary);
+ if (analyzed_len >= 16384)
+ store_block_signatures(ref, new_block_summary);
refs.push_back(ref);
delete o;
return refs;
refs.push_back(ref);
delete o;
return refs;