Skip to content

promote both db and cf stats and turn enums into enum class#5854

Open
gimre-xymcity wants to merge 2 commits intofacebook:6.2.fbfrom
nemtech:6.2.fb
Open

promote both db and cf stats and turn enums into enum class#5854
gimre-xymcity wants to merge 2 commits intofacebook:6.2.fbfrom
nemtech:6.2.fb

Conversation

@gimre-xymcity
Copy link
Copy Markdown

This is proposed fix for #4946 as stated in comment

this fix probably has invalid formatting and might have few issues, but it seems to be compiling,
(I haven't checked ROCKSDB_LITE ifdef branch though).
The fix consists of fairly simple changes:

  1. promotes InternalCFStatsType and InternalDBStatsType to top rocksdb namespace
  2. turns both enums into enum classes
  3. fixes usage
    (this is on top of 6.2.fb branch, but it should be fairly trivial to rebase if needed)

@facebook-github-bot
Copy link
Copy Markdown
Contributor

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed.

If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks!

@facebook-github-bot
Copy link
Copy Markdown
Contributor

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@siying
Copy link
Copy Markdown
Contributor

siying commented Oct 1, 2019

We generally don't accept pull requests to release branches. Everything must go to master first and the release manager will backport it. I believe master has an alternative fix: #5779 .

@gimer if we release 6.3 in a week or so with this fixed, do you still want 6.2 to be fixed?

@siying siying self-assigned this Oct 1, 2019
@facebook-github-bot
Copy link
Copy Markdown
Contributor

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@gimre-xymcity
Copy link
Copy Markdown
Author

We generally don't accept pull requests to release branches. Everything must go to master first and the release manager will backport it.

ok, will know in future.

I believe master has an alternative fix: #5779 .

Is there any style/convention guide anywhere?

if we release 6.3 in a week or so with this fixed, do you still want 6.2 to be fixed?

not necessarily.

@gimre-xymcity
Copy link
Copy Markdown
Author

@siying just to confirm, the fix from adbc25a isn't available in 6.3 branch yet, correct?

@siying
Copy link
Copy Markdown
Contributor

siying commented Oct 22, 2019

@gimer you are right. Not only it is not in 6.3 branch, the coming 6.4 won't have it either.

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