ref: 3bc59debb5436d6d3ffce5aa643da021aaf533ef
parent: 048d36efe996b3918b7a33ec971e7a26d4a80ff4
author: Runxi Yu <runxiyu@umich.edu>
date: Mon Mar 30 14:13:06 EDT 2026
object/store/dual: Dual shouldn't satisfy {Object,Pack}Quarantiner at all
--- a/object/store/dual/dual.go
+++ b/object/store/dual/dual.go
@@ -30,7 +30,5 @@
_ objectstore.Reader = (*Dual)(nil)
_ objectstore.ObjectWriter = (*Dual)(nil)
_ objectstore.PackWriter = (*Dual)(nil)
- _ objectstore.ObjectQuarantiner = (*Dual)(nil)
- _ objectstore.PackQuarantiner = (*Dual)(nil)
_ objectstore.WriterQuarantiner = (*Dual)(nil)
)
--- a/object/store/dual/quarantine_begin.go
+++ b/object/store/dual/quarantine_begin.go
@@ -6,40 +6,6 @@
//
// Labels: Deps-Borrowed, Life-Parent, Close-No.
func (dual *Dual) BeginQuarantine(opts objectstore.QuarantineOptions) (objectstore.WriterQuarantine, error) {- return dual.beginQuarantine(opts)
-}
-
-// BeginObjectQuarantine creates one coordinated dual quarantine spanning both
-// stores and returns it as an object-wise quarantine.
-//
-// Labels: Deps-Borrowed, Life-Parent, Close-No.
-func (dual *Dual) BeginObjectQuarantine(opts objectstore.ObjectQuarantineOptions) (objectstore.ObjectQuarantine, error) {- quarantine, err := dual.beginQuarantine(objectstore.QuarantineOptions{- Object: opts,
- })
- if err != nil {- return nil, err
- }
-
- return quarantine, nil
-}
-
-// BeginPackQuarantine creates one coordinated dual quarantine spanning both
-// stores and returns it as a pack-wise quarantine.
-//
-// Labels: Deps-Borrowed, Life-Parent, Close-No.
-func (dual *Dual) BeginPackQuarantine(opts objectstore.PackQuarantineOptions) (objectstore.PackQuarantine, error) {- quarantine, err := dual.beginQuarantine(objectstore.QuarantineOptions{- Pack: opts,
- })
- if err != nil {- return nil, err
- }
-
- return quarantine, nil
-}
-
-func (dual *Dual) beginQuarantine(opts objectstore.QuarantineOptions) (*quarantine, error) {objectQ, err := dual.object.BeginObjectQuarantine(opts.Object)
if err != nil {return nil, err
--
⑨