diff options
| author | 2026-03-22 18:00:22 +0000 | |
|---|---|---|
| committer | 2026-03-22 18:02:10 +0000 | |
| commit | 4e43d7207bf91ee759c770de1bcc8562a71b4aca (patch) | |
| tree | 2abf7592a88d733b2815fc214ba59c3b209d3fa7 /receivepack/service/quarantine.go | |
| parent | objectstore{,/packed}: Document lifetime and integrity behavior (diff) | |
| signature | No signature | |
objectstore/*, repository, receivepack/service: don't take ownership of root
Diffstat (limited to 'receivepack/service/quarantine.go')
| -rw-r--r-- | receivepack/service/quarantine.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/receivepack/service/quarantine.go b/receivepack/service/quarantine.go index 97a85959..0bd98aeb 100644 --- a/receivepack/service/quarantine.go +++ b/receivepack/service/quarantine.go @@ -14,6 +14,11 @@ import ( // createQuarantineRoot creates one per-push quarantine directory beneath the // permanent objects root. +// +// It returns both the quarantine directory name relative to ObjectsRoot and an +// opened root for that directory. Callers use the name for later promotion or +// removal relative to ObjectsRoot, and use the opened root for capability-based +// access within the quarantine itself. func (service *Service) createQuarantineRoot() (string, *os.Root, error) { name := "tmp_objdir-incoming-" + rand.Text() |
