Skip to content

Commit 0a320e4

Browse files
committed
initial notes: SingleFileInserter, added TODO and commentend out try
1 parent 5bda2ac commit 0a320e4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/freenet/client/async/SingleFileInserter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,8 @@ void onCompressedInner(CompressionOutput output, ClientContext context) throws I
278278
return;
279279
}
280280
}
281-
if (fitsInOneCHK) {
281+
if (fitsInOneCHK) { // && isCHK) { // TODO: adding && isCHK works to turn single inserts into SSK splitfiles, but not for Sharesite inserts.
282+
// TODO: do not use single CHK redirect with SSKs that have no metadata: A SSK splitfile has double size, but much better lifetime, because the second CHK can then be healed on access.
282283
// Insert single block, then insert pointer to it
283284
if(persistent && (data instanceof NotPersistentBucket)) {
284285
data = fixNotPersistent(data, context);

0 commit comments

Comments
 (0)