Commit 562e0ce
committed
rgw: fix multipart get part when count==1
the RGWObjManifest for multipart uploads is subtly different when
there's only a single part. in that case, get_cur_part_id() for the
final rule returns 1 where it otherwise returns (parts_count + 1)
this caused two problems:
* we returned a parts_count of 0 instead 1, and
* the do-while loop got stuck in an infinite loop expecting the last
rule's part id to be higher than the requested part id
Fixes: https://tracker.ceph.com/issues/66705
Signed-off-by: Casey Bodley <cbodley@redhat.com>1 parent bdbef73 commit 562e0ce
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6639 | 6639 | | |
6640 | 6640 | | |
6641 | 6641 | | |
6642 | | - | |
| 6642 | + | |
| 6643 | + | |
6643 | 6644 | | |
6644 | 6645 | | |
6645 | 6646 | | |
6646 | 6647 | | |
6647 | | - | |
| 6648 | + | |
| 6649 | + | |
| 6650 | + | |
6648 | 6651 | | |
6649 | 6652 | | |
6650 | 6653 | | |
| |||
6704 | 6707 | | |
6705 | 6708 | | |
6706 | 6709 | | |
6707 | | - | |
| 6710 | + | |
6708 | 6711 | | |
6709 | 6712 | | |
6710 | 6713 | | |
| |||
0 commit comments