Add multipart uploads cache for ListMultipartUploads() (#20407)

this cache will be honored only when `prefix=""` while
performing ListMultipartUploads() operation.

This is mainly to satisfy applications like alluxio
for their underfs implementation and tests.

replaces https://github.com/minio/minio/pull/20181
This commit is contained in:
Harshavardhana
2024-09-09 09:58:30 -07:00
committed by GitHub
parent b1c849bedc
commit 8c9ab85cfa
7 changed files with 148 additions and 11 deletions

View File

@@ -467,6 +467,17 @@ func (client *peerRESTClient) ReloadPoolMeta(ctx context.Context) error {
return err
}
func (client *peerRESTClient) DeleteUploadID(ctx context.Context, uploadID string) error {
conn := client.gridConn()
if conn == nil {
return nil
}
_, err := cleanupUploadIDCacheMetaRPC.Call(ctx, conn, grid.NewMSSWith(map[string]string{
peerRESTUploadID: uploadID,
}))
return err
}
func (client *peerRESTClient) StopRebalance(ctx context.Context) error {
conn := client.gridConn()
if conn == nil {