Skip to content
This repository was archived by the owner on Feb 8, 2024. It is now read-only.

Commit db76065

Browse files
DPG17Sachin Punadikar
authored andcommitted
motr_sal: [CORTX-32689] Fix multipart download issue
Problem: After DI changes, the unit size is limited to 1MB for objects >= 1MB. In SNS 3+2 config, the first part object for a 10MB object is partially uploaded, causing EIO (-5) error during Get obj API call. Solution: Use part object size to calculate optimal block size. Signed-off-by: Dattaprasad Govekar <[email protected]>
1 parent 62ce42f commit db76065

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rgw/rgw_sal_motr.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2890,7 +2890,7 @@ int MotrObject::write_mobj(const DoutPrefixProvider *dpp, bufferlist&& in_buffer
28902890
available_data = io_ctxt.total_bufer_sz;
28912891
}
28922892

2893-
bs = this->get_optimal_bs(left);
2893+
bs = this->get_optimal_bs(expected_obj_size);
28942894
ldpp_dout(dpp, 20) <<__func__<< ": left=" << left << " bs=" << bs << dendl;
28952895
if ((left + available_data) < bs) {
28962896
// Determine if there are any further chunks/bytes from socket to be processed

0 commit comments

Comments
 (0)