Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughAdds diagnostic logging (ERROR_MSG, WARNING_MSG, DEBUG_MSG) across object store components (Directory, Generation, OSToken, ObjectFile) on error paths and state changes; no public APIs or control flow semantics were changed. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
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 Tip CodeRabbit can enforce grammar and style rules using `languagetool`.Configure the |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@src/lib/object_store/Directory.cpp`:
- Around line 225-226: The format string in the DEBUG_MSG call uses "%d" for
files.size() and subDirs.size(), which are size_t; change the format specifiers
to "%zu" (or cast the values to int if intentional) so the call becomes
DEBUG_MSG("Directory %s refreshed: %zu files, %zu subdirs", path.c_str(),
files.size(), subDirs.size()) to avoid mismatched-specifier warnings and
incorrect output; locate the DEBUG_MSG invocation in Directory.cpp (around the
Directory refresh logic) and update the format string accordingly.
In `@src/lib/object_store/OSToken.cpp`:
- Around line 673-676: The WARNING_MSG call in OSToken.cpp uses "%d" to print
removedFiles.size() (a size_t) which is a format mismatch; update the format
string in the WARNING_MSG invocation that references tokenPath.c_str() and
removedFiles.size()—replace "%d" with "%zu" so the call becomes
WARNING_MSG("Token %s: %zu object(s) no longer on disk", tokenPath.c_str(),
removedFiles.size()).
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 40f28a1c-f6ab-4892-9408-07f0baf2d310
📒 Files selected for processing (4)
src/lib/object_store/Directory.cppsrc/lib/object_store/Generation.cppsrc/lib/object_store/OSToken.cppsrc/lib/object_store/ObjectFile.cpp
2d6a82b to
342afcb
Compare
Extend file object store logging for better tracking of potential of issues.
Summary by CodeRabbit