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

MyRocks: cleanup Rdb_convert_to_record_key_decoder class #1503

Open
wants to merge 1 commit into
base: fb-mysql-8.0.32
Choose a base branch
from

Conversation

laurynas-biveinis
Copy link
Contributor

  • Since this class is a non-instantiable collection of static methods, delete
    the rest of special methods (default constructor, move constructor, move
    assignment operator, destructor) in addition to the currently deleted ones.
  • Convert method arguments from pointers to references and propagate this up and
    down the call hierarchy. Most notably this converts many "TABLE *" uses to
    "const TABLE &" throughout MyRocks, deletes a bit of dead code, converts some
    constructor assignments to initializer list items.
  • For touched methods, add [[nodiscard]] as applicable and remove redundant
    const from parameters, do other minor cleanups.
  • Move struct Rdb_unpack_func_context definition from rdb_datadic.h to
    rdb_datadic.cc leaving a forward declaration in the header file.

- Since this class is a non-instantiable collection of static methods, delete
  the rest of special methods (default constructor, move constructor, move
  assignment operator, destructor) in addition to the currently deleted ones.
- Convert method arguments from pointers to references and propagate this up and
  down the call hierarchy. Most notably this converts many "TABLE *" uses to
  "const TABLE &" throughout MyRocks, deletes a bit of dead code, converts some
  constructor assignments to initializer list items.
- For touched methods, add [[nodiscard]] as applicable and remove redundant
  const from parameters, do other minor cleanups.
- Move struct Rdb_unpack_func_context definition from rdb_datadic.h to
  rdb_datadic.cc leaving a forward declaration in the header file.
@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.

2 participants