Skip to content

Commit

Permalink
Refactor parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
char-1ee committed Dec 19, 2023
1 parent 5c2fff5 commit 3f9c8eb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ctriface/iface.go
Original file line number Diff line number Diff line change
Expand Up @@ -498,11 +498,10 @@ func (o *Orchestrator) LoadSnapshot(ctx context.Context, vmID string, snap *snap
conf.MemFilePath = snap.GetMemFilePath()
conf.ContainerSnapshotPath = containerSnap.GetDevicePath()

if conf.MemBackend == nil {
conf.MemBackend = &proto.MemoryBackend{}
conf.MemBackend = &proto.MemoryBackend{
BackendType: fileBackend,
BackendPath: snap.GetMemFilePath(),
}
conf.MemBackend.BackendType = fileBackend
conf.MemBackend.BackendPath = snap.GetMemFilePath()

if o.GetUPFEnabled() {
conf.MemBackend.BackendType = uffdBackend
Expand Down

0 comments on commit 3f9c8eb

Please sign in to comment.