fix cmake build warnings - #242
Conversation
fix warnings
📝 WalkthroughWalkthroughThe changes remove unused parameter names and add warning logs when multipart-upload or test bucket cleanup operations fail. ChangesError handling and cleanup diagnostics
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
src/client.cc (1)
1308-1311: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick winAvoid duplicate cleanup warnings.
At Line [1308],
cleanup()runs before several failure paths throw. Thecatchblock then runscleanup()again. The second pass can remove already deleted buckets and logResourceNotFoundwarnings as cleanup failures.Run cleanup only from the
catchblock, or make the helper suppress expected not-found results.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@src/client.cc` around lines 1308 - 1311, Update the PutObject failure-handling flow around BaseClient::PutObject so cleanup is performed only once: remove the pre-throw cleanup invocation and retain cleanup in the catch path, or make cleanup ignore expected not-found results. Preserve normal cleanup behavior while preventing duplicate ResourceNotFound warnings.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Outside diff comments:
In `@src/client.cc`:
- Around line 1308-1311: Update the PutObject failure-handling flow around
BaseClient::PutObject so cleanup is performed only once: remove the pre-throw
cleanup invocation and retain cleanup in the catch path, or make cleanup ignore
expected not-found results. Preserve normal cleanup behavior while preventing
duplicate ResourceNotFound warnings.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: eb1fc58f-0780-430e-b1bc-6eb8acb8c212
📒 Files selected for processing (3)
src/baseclient.ccsrc/client.cctests/tests.cc
fix warnings
fix #130
now:
Summary by CodeRabbit