Skip to content

Conversation

@maxkozlovsky
Copy link
Contributor

ro_sq_thread_cpu had default value so it was always not option{}. Make it option so omitting argument will skip creation of sq poll thread.

Copilot AI review requested due to automatic review settings November 13, 2025 20:32
Copilot finished reviewing on behalf of maxkozlovsky November 13, 2025 20:34
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR makes the ro_sq_thread_cpu command-line argument optional in the monad application. Previously, it had a default value of get_nprocs() - 2, which always enabled the SQPOLL kernel thread. Now it defaults to std::nullopt, allowing users to omit the argument to skip SQPOLL thread creation for read-only database operations.

Key changes:

  • Changed ro_sq_thread_cpu from unsigned to std::optional<unsigned> with std::nullopt default
  • Updated help text to clarify the optional nature and behavior when omitted

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Chen-Yifan
Chen-Yifan previously approved these changes Nov 14, 2025
ro_sq_thread_cpu had default value so it was always not option{}. Make
it option<unsigned> so omitting argument will skip creation of sq poll
thread.
@jhunsaker jhunsaker merged commit d891204 into main Nov 14, 2025
8 checks passed
@jhunsaker jhunsaker deleted the max/norosqpoll branch November 14, 2025 01:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants