This repository has been archived by the owner on Feb 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rgw_sal_motr: [CORTX-32463] handle _ (underscore) in object key name (#…
…349) * Revert "rgw_motr_sal: [CORTX-32463] fix GET api for object starting from '_'" This reverts commit a158446. Reason: We have to use rgw_obj_key::get_index_key() function to support rgw framework. Signed-off-by: Saurabh Jain <saurabh.jain2@seagate.com> * rgw_motr_sal: [CORTX-32463] handle _ (underscore) in object key name Problem: rgw_obj_key::get_index_key() api has some specially handling for ns (namespace) which is spefic to rados backend. If obejct key starts from '_' then get_index_key appends one more '_' to the key name. This causes issue during lookup for the same key. Solution: Convert cls_rgw_obj_key type to rgw_obj_key before comparing object keys or creating index keys. Signed-off-by: Saurabh Jain <saurabh.jain2@seagate.com>
- Loading branch information
Showing
1 changed file
with
32 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters