Skip to content
Snippets Groups Projects
Commit f6de16f2 authored by piotr.kupczyk@id.ethz.ch's avatar piotr.kupczyk@id.ethz.ch
Browse files

SSDM-13578 : 2PT : Database and V3 Implementation - integration tests - make...

SSDM-13578 : 2PT : Database and V3 Implementation - integration tests - make the lock list JSON deserialization work (List.of which was used before was returning an immutable list that didn't have a default constructor and made the recovery process fail)
parent 84fefe0b
No related branches found
No related tags found
1 merge request!40SSDM-13578 : 2PT : Database and V3 Implementation - include the new AFS "free"...
......@@ -22,6 +22,9 @@ import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Value;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.UUID;
......@@ -40,7 +43,7 @@ public class WriteOperation implements Operation {
public WriteOperation(UUID owner, String source, long offset, byte[] data, byte[] md5Hash) {
this.owner = owner;
this.locks = List.of(new Lock<>(owner, source, LockType.Exclusive));
this.locks = new ArrayList<>(Collections.singletonList(new Lock<>(owner, source, LockType.Exclusive)));
this.source = source;
this.offset = offset;
this.data = data;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment