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

rgw_sal_motr: [CORTX-32697] support user remove with purge data #430

Merged
merged 1 commit into from
Sep 14, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion src/rgw/rgw_sal_motr.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2071,7 +2071,17 @@ MotrObject::MotrDeleteOp::MotrDeleteOp(MotrObject *_source, RGWObjectCtx *_rctx)
source(_source),
rctx(_rctx)
{
addb_logger.set_id(rctx);
// - In case of the operation remove_user with --purge-data, we don't
// have access to the `req_state* s` via `RGWObjectCtx* rctx`.
// - In this case, we are generating a new req_id per obj deletion operation.
// This will retrict us from traking all delete req per user_remove req in ADDB
// untill we make changes to access req_state without using RGWObjectCtx ptr.

if (rctx->get_private()) {
addb_logger.set_id(rctx);
} else {
addb_logger.set_id(_source->store->get_new_req_id());
}
}

// Implementation of DELETE OBJ also requires MotrObject::get_obj_state()
Expand Down