remove extra setting of store worker num#261
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughFormatting change in EngineConfig initializer, a minor formatting-only edit in metrics initialization call, and a conditional compile block added to set Eloq store worker count via gflags when DATA_STORE_TYPE_ELOQDSS_ELOQSTORE is defined. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Poem
Pre-merge checks and finishing touches❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
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.
Actionable comments posted: 0
🧹 Nitpick comments (1)
core/src/data_substrate.cpp (1)
753-756: Guarded initialization ofeloq_store_worker_numlooks good; consider preserving CLI overridesThe new
#ifdef DATA_STORE_TYPE_ELOQDSS_ELOQSTOREguard is a nice safety net. If you want to allow operators to overrideeloq_store_worker_numvia CLI, you could gate the assignment onCheckCommandLineFlagIsDefault:#ifdef DATA_STORE_TYPE_ELOQDSS_ELOQSTORE - GFLAGS_NAMESPACE::SetCommandLineOption( - "eloq_store_worker_num", std::to_string(core_config_.core_num).c_str()); + if (CheckCommandLineFlagIsDefault("eloq_store_worker_num")) { + GFLAGS_NAMESPACE::SetCommandLineOption( + "eloq_store_worker_num", + std::to_string(core_config_.core_num).c_str()); + } #endif
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
core/include/data_substrate.h(1 hunks)core/src/data_substrate.cpp(1 hunks)
🔇 Additional comments (1)
core/include/data_substrate.h (1)
118-125: Formatting-only change toEngineConfiginitializers is fineSplitting
engine_registered’s initializer across lines doesn’t affect behavior and keeps defaults (false) unchanged.
Here are some reminders before you submit the pull request
fixes eloqdb/tx_service#issue_id./mtr --suite=mono_main,mono_multi,mono_basicSummary by CodeRabbit
Style
Chores
✏️ Tip: You can customize this high-level summary in your review settings.