@@ -61,7 +61,7 @@ func (c *Collection) WriteWithXattrs(ctx context.Context, k string, exp uint32,
6161 }
6262
6363 // Kick off retry loop
64- err , cas = RetryLoop (ctx , "WriteWithXattrs" , worker , DefaultRetrySleeper ())
64+ err , cas = RetryLoopCas (ctx , "WriteWithXattrs" , worker , DefaultRetrySleeper ())
6565 if err != nil {
6666 err = pkgerrors .Wrapf (err , "WriteWithXattrs with key %v" , UD (k ).Redact ())
6767 }
@@ -111,7 +111,7 @@ func (c *Collection) WriteTombstoneWithXattrs(ctx context.Context, k string, exp
111111 }
112112
113113 // Kick off retry loop
114- err , cas = RetryLoop (ctx , "WriteTombstoneWithXattrs" , worker , DefaultRetrySleeper ())
114+ err , cas = RetryLoopCas (ctx , "WriteTombstoneWithXattrs" , worker , DefaultRetrySleeper ())
115115 if err != nil {
116116 err = pkgerrors .Wrapf (err , "Error during WriteTombstoneXattrs with key %v" , UD (k ).Redact ())
117117 return cas , err
@@ -138,7 +138,7 @@ func (c *Collection) WriteTombstoneWithXattrs(ctx context.Context, k string, exp
138138 return false , nil , casOut
139139 }
140140
141- err , cas = RetryLoop (ctx , "UpdateXattrDeleteBodySecondOp" , worker , DefaultRetrySleeper ())
141+ err , cas = RetryLoopCas (ctx , "UpdateXattrDeleteBodySecondOp" , worker , DefaultRetrySleeper ())
142142 if err != nil {
143143 err = pkgerrors .Wrapf (err , "Error during UpdateTombstoneXattr delete op with key %v" , UD (k ).Redact ())
144144 return cas , err
@@ -165,7 +165,7 @@ func (c *Collection) WriteResurrectionWithXattrs(ctx context.Context, k string,
165165 }
166166
167167 // Kick off retry loop
168- err , cas := RetryLoop (ctx , "WriteResurrectionWithXattrs" , worker , DefaultRetrySleeper ())
168+ err , cas := RetryLoopCas (ctx , "WriteResurrectionWithXattrs" , worker , DefaultRetrySleeper ())
169169 if err != nil {
170170 err = pkgerrors .Wrapf (err , "WriteResurrectionWithXattrs with key %v" , UD (k ).Redact ())
171171 }
@@ -297,7 +297,7 @@ func SetXattrs(ctx context.Context, store *Collection, k string, xvs map[string]
297297 return false , writeErr , 0
298298 }
299299
300- err , casOut = RetryLoop (ctx , "SetXattr" , worker , DefaultRetrySleeper ())
300+ err , casOut = RetryLoopCas (ctx , "SetXattr" , worker , DefaultRetrySleeper ())
301301 if err != nil {
302302 err = pkgerrors .Wrapf (err , "SetXattr with key %v" , UD (k ).Redact ())
303303 }
0 commit comments