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

Make examples work on Windows #7304

Closed
wants to merge 1 commit into from

Conversation

alucarded
Copy link
Contributor

@alucarded alucarded commented Aug 24, 2020

Quick fixes to examples to make it easier to get familiar with RocksDB for Windows users:

  • Set proper temporary directory path on Windows for all examples (with C++17 we should start using std::filesystem)
  • Fixed typo and got rid of warnings treated as errors in multi_processes_example.cc
  • Get number of available cores on Windows in c_simple_example.c
  • Add command to remove DB directory for Windows in compaction_filter_example.cc (print error, but carry on with example upon error, because error code is returned if there is no such directory on Windows)

@alucarded
Copy link
Contributor Author

I have just started working with RocksDB on Windows and figured out that all the examples are not working, so I fixed them.
Can anyone review and merge if everything looks good? It may help others.

@ajkr @pdillinger @akankshamahajan15 @siying I am mentioning you since you are the most active developers/reviewers recently. Please help with getting this merged! Thank you!

Copy link
Contributor

@pdillinger pdillinger left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for the contribution 😄

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

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

@facebook-github-bot
Copy link
Contributor

@pdillinger merged this pull request in 8d44d79.

codingrhythm pushed a commit to SafetyCulture/rocksdb that referenced this pull request Mar 5, 2021
Summary:
Quick fixes to examples to make it easier to get familiar with RocksDB for Windows users:

- Set proper temporary directory path on Windows for all examples (with C++17 we should start using std::filesystem)
- Fixed typo and got rid of warnings treated as errors in multi_processes_example.cc
- Get number of available cores on Windows in c_simple_example.c
- Add command to remove DB directory for Windows in compaction_filter_example.cc (print error, but carry on with example upon error, because error code is returned if there is no such directory on Windows)

Pull Request resolved: facebook#7304

Reviewed By: jay-zhuang

Differential Revision: D23450900

Pulled By: pdillinger

fbshipit-source-id: 4256134deb6ae6bb267ed1bd69f814842b95f60f
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.

None yet

3 participants