Skip to content

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

3 participants