Skip to content
This repository was archived by the owner on Mar 1, 2026. It is now read-only.

Move MyRocks sysvars to sysvars.cc and sysvars.h#1499

Open
laurynas-biveinis wants to merge 2 commits into
facebook:fb-mysql-8.0.32from
laurynas-biveinis:split-myr-sysvars
Open

Move MyRocks sysvars to sysvars.cc and sysvars.h#1499
laurynas-biveinis wants to merge 2 commits into
facebook:fb-mysql-8.0.32from
laurynas-biveinis:split-myr-sysvars

Conversation

@laurynas-biveinis

Copy link
Copy Markdown
Contributor
  • Introduce new source files sysvars.cc and sysvars.h and move there everything
    related to MyRocks system variables. Modernize them (NULL -> nullptr, drop
    unused args instead of MY_ATTRIBUTE((unused)), drop redundant struct keywords,
    Almost Always Auto, C-style casts -> static_cast, etc.)
  • Introduce new namespace myrocks::sysvars for the variables and their trivial
    getters, drop "rocksdb_" prefixes except where it is needed to avoid
    confusion (i.e. datadir).
  • For non-trivial MyRocks/RocksDB operations that need to be done from sysvar
    validate/set functions, expose them through ha_rocksdb.h as needed.
  • Convert myrocks::get_rocksdb_db_options to return a reference instead of a
    pointer.
  • Fix some typos while reflowing the sysvar descriptions, re-record
    main.mysqld--help-notwin accordingly.
- Introduce new source files sysvars.cc and sysvars.h and move there everything
  related to MyRocks system variables. Modernize them (NULL -> nullptr, drop
  unused args instead of MY_ATTRIBUTE((unused)), drop redundant struct keywords,
  Almost Always Auto, C-style casts -> static_cast, etc.)
- Introduce new namespace myrocks::sysvars for the variables and their trivial
  getters, drop "rocksdb_" prefixes except where it is needed to avoid
  confusion (i.e. datadir).
- For non-trivial MyRocks/RocksDB operations that need to be done from sysvar
  validate/set functions, expose them through ha_rocksdb.h as needed.
- Convert myrocks::get_rocksdb_db_options to return a reference instead of a
  pointer.
- Fix some typos while reflowing the sysvar descriptions, re-record
  main.mysqld--help-notwin accordingly.
@facebook-github-bot

Copy link
Copy Markdown

@luqun has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot

Copy link
Copy Markdown

@laurynas-biveinis has updated the pull request. You must reimport the pull request before landing.

@facebook-github-bot

Copy link
Copy Markdown

@luqun has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

3 participants