Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 2 commits into
base: fb-mysql-8.0.32
Choose a base branch
from

Conversation

laurynas-biveinis
Copy link
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

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

@facebook-github-bot
Copy link

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

@facebook-github-bot
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants