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

Fix GetCurrentTime() initialization for valgrind #2526

Closed
wants to merge 1 commit into from

Conversation

ajkr
Copy link
Contributor

@ajkr ajkr commented Jun 30, 2017

Valgrind had false positive complaints about the initialization pattern for GetCurrentTime()'s argument in #2480. We can instead have the client initialize the time variable before calling GetCurrentTime(), and have GetCurrentTime() promise to only overwrite it in success case.

Test Plan:

  • TEST_TMPDIR=/dev/shm/rocksdb OPT=-g make -j64 valgrind_test
  • make check -j64

@facebook-github-bot
Copy link
Contributor

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

@ajkr
Copy link
Contributor Author

ajkr commented Jul 3, 2017

ping

@ajkr ajkr requested a review from siying July 3, 2017 17:00
@ajkr
Copy link
Contributor Author

ajkr commented Jul 3, 2017

any questions?

Copy link
Contributor

@sagar0 sagar0 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 fixing these!

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