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

Misc windows fixes #37

Merged
merged 5 commits into from
Feb 24, 2017
Merged

Misc windows fixes #37

merged 5 commits into from
Feb 24, 2017

Conversation

tamird
Copy link
Contributor

@tamird tamird commented Feb 24, 2017

Decided to update to 5.1.2 while I'm here, but let me know if you'd prefer that as a separate change.

Copy link
Contributor

@bdarnell bdarnell left a comment

Choose a reason for hiding this comment

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

I'm OK with moving ahead with 5.1.2 but @petermattis should weigh in too.

import.sh Outdated
# TODO(tamird,petermattis): remove when
# https://github.com/facebook/rocksdb/commit/4a17b47bb5a2cc09f95acb53ec565bccd171ee4e
# is released.
patch -p1 < testharness.patch
Copy link
Contributor

Choose a reason for hiding this comment

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

Delete the file testharness.patch

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's already deleted here.

import.sh Outdated
grep -lR '#include <.*[A-Z].*>' internal | while IFS= read -r source_file; do
grep -o '#include <.*[A-Z].*>' "$source_file" | while IFS= read -r original; do
downcased=$(echo "$original" | tr '[:upper:]' '[:lower:]')
sed -i~ "s!$original!$downcased!g" "$source_file"
Copy link
Contributor

Choose a reason for hiding this comment

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

This is much easier in awk: awk '/#include/ { print tolower($0); next; } { print; }'. Unfortunately awk doesn't have the handy -i option unless we're willing to rely on gnu extensions (and speaking of which, gnu sed has an extension for upper- and lower-casing).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's not quite equivalent (it produced this diff):

diff --git a/internal/port/win/env_win.cc b/internal/port/win/env_win.cc
index 61d5cf1..df4a57c 100644
--- a/internal/port/win/env_win.cc
+++ b/internal/port/win/env_win.cc
@@ -32,7 +32,7 @@
 #include "util/thread_status_updater.h"
 #include "util/thread_status_util.h"
 
-#include <rpc.h>  // For UUID generation
+#include <rpc.h>  // for uuid generation
 #include <windows.h>
 
 namespace rocksdb {

But done anyway.

Copy link
Contributor

@petermattis petermattis left a comment

Choose a reason for hiding this comment

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

I'd prefer a separate change for the 5.1.2 bump, though I do want to do that.

@tamird
Copy link
Contributor Author

tamird commented Feb 24, 2017 via email

@tamird tamird changed the title Misc windows fixes + bump to 5.1.2 Misc windows fixes Feb 24, 2017
@tamird tamird merged commit 87f6181 into master Feb 24, 2017
@tamird tamird deleted the misc-windows-fixes branch February 24, 2017 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants