Skip to content
Commit d842a120 authored by Alexander Larsson's avatar Alexander Larsson Committed by Alexander Larsson
Browse files

document-portal: Make Temp files keep the inode around

We need the temp file to keep the inode alive because otherwise
the root inode can become forgotten which leads to the domain
tempname mapping to be lost and the tempfile disappears.

This is a cyclic ref:
 root inode -> domain -> tempfile dict -> tempfile -> inode -> root inode

But it is explicitly broken when the temp file is unlinked (which
causes the tempfile dict -> tempfile ref to go away.
parent 74f70ad1
Loading
Loading
Loading
Loading
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