]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd: remove redundant comments
authorKefu Chai <k.chai@proxmox.com>
Sun, 29 Mar 2026 11:40:46 +0000 (19:40 +0800)
committerKefu Chai <k.chai@proxmox.com>
Sun, 29 Mar 2026 11:55:02 +0000 (19:55 +0800)
Remove comments that merely restate what the code already says clearly:
- SeastarOption field comments (option_name, config_key, value_type)
- "Define a list of Seastar options" above seastar_options
- "Function to get the option value as a string" above get_option_value
- "stop()s registered using defer() are called here" in main()

Also fix the trailing space before the semicolon in the value_type
field declaration.

Signed-off-by: Kefu Chai <k.chai@proxmox.com>
src/crimson/osd/main.cc
src/crimson/osd/main_config_bootstrap_helpers.cc

index a24ace8c470549f3529b8f7fefc1c35489794a68..174bdc2772a31aacb68206bd7b8fa988ce6e347c 100644 (file)
@@ -283,7 +283,6 @@ int main(int argc, const char* argv[])
           should_stop.wait().get();
           INFO("crimson shutting down");
           osd.stop().get();
-          // stop()s registered using defer() are called here
         } catch (...) {
           logger().error("startup failed: {}", std::current_exception());
           return EXIT_FAILURE;
index 07e9910dee0412cd502e2f1a2ed03f8aaf6ba764..3454b5dbc3942d9a1e9953399fb8cf0e0e322dee 100644 (file)
@@ -86,12 +86,11 @@ seastar::future<> populate_config_from_mon()
 }
 
 struct SeastarOption {
-  std::string option_name;  // Command-line option name
-  std::string config_key;   // Configuration key
-  Option::type_t value_type ;   // Type of configuration value
+  std::string option_name;
+  std::string config_key;
+  Option::type_t value_type;
 };
 
-// Define a list of Seastar options
 const std::vector<SeastarOption> seastar_options = {
   {"--task-quota-ms", "crimson_reactor_task_quota_ms", Option::TYPE_FLOAT},
   {"--io-latency-goal-ms", "crimson_reactor_io_latency_goal_ms", Option::TYPE_FLOAT},
@@ -100,7 +99,6 @@ const std::vector<SeastarOption> seastar_options = {
   {"--reactor-backend", "crimson_reactor_backend", Option::TYPE_STR}
 };
 
-// Function to get the option value as a string
 std::optional<std::string> get_option_value(const SeastarOption& option) {
   switch (option.value_type) {
     case Option::TYPE_FLOAT: {