Skip to content

Commit

Permalink
object/ceph: allow delete when ceph cluster is full (#4131)
Browse files Browse the repository at this point in the history
  • Loading branch information
SandyXSD authored Nov 1, 2023
1 parent 35dac2c commit 7f73821
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/object/ceph.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ func (c *ceph) newContext() (*rados.IOContext, error) {
case ctx := <-c.free:
return ctx, nil
default:
return c.conn.OpenIOContext(c.name)
ctx, err := c.conn.OpenIOContext(c.name)
if err == nil {
_ = ctx.SetPoolFullTry()
}
return ctx, err
}
}

Expand Down

0 comments on commit 7f73821

Please sign in to comment.