Objects: add putNew

to avoid searching for nonexistent objects
This commit is contained in:
2025-04-28 23:47:53 +02:00
parent 9ff914bdaa
commit bc5f0b816c
5 changed files with 24 additions and 1 deletions

View File

@@ -83,7 +83,7 @@ public class DhfsFileServiceImpl implements DhfsFileService {
private ChunkData createChunk(ByteString bytes) {
var newChunk = new ChunkData(JObjectKey.of(UUID.randomUUID().toString()), bytes);
remoteTx.putData(newChunk);
remoteTx.putDataNew(newChunk);
return newChunk;
}