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

VlogSize to store correct directory name to expvar.Map #956

Merged
merged 1 commit into from
Aug 9, 2019

Conversation

burmanm
Copy link
Contributor

@burmanm burmanm commented Aug 1, 2019

If LSM and ValueLog were stored in the different directories, the metrics stored in the expvar would report incorrectly the directory keyname for value dir.


This change is Reviewable

@burmanm burmanm requested review from ashish-goswami, manishrjain and a team as code owners August 1, 2019 08:23
@CLAassistant
Copy link

CLAassistant commented Aug 1, 2019

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@jarifibrahim jarifibrahim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for sending the PR @burmanm . Please sign the CLA so that we can merge this PR.
Can you change this line as well

badger/db.go

Line 1084 in d8e1fcf

vlog = y.VlogSize.Get(db.opt.Dir).(*expvar.Int).Value()

@burmanm
Copy link
Contributor Author

burmanm commented Aug 1, 2019

Will update. I'm waiting for our legal team to answer to the CLA.

@jarifibrahim
Copy link
Contributor

The change looks harmless. I'm merging it. Thanks for the PR @burmanm.

@jarifibrahim jarifibrahim merged commit 2cd3f4d into dgraph-io:master Aug 9, 2019
jarifibrahim pushed a commit that referenced this pull request Mar 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants