-
Notifications
You must be signed in to change notification settings - Fork 19
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
Conversation
This cleans all ignored files, which is what we (always) want.
There was a problem hiding this 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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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).
There was a problem hiding this comment.
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.
36a5312
to
b1cd428
Compare
b1cd428
to
48ff7ca
Compare
There was a problem hiding this 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.
48ff7ca
to
1e1dbe9
Compare
Done.
…On Fri, Feb 24, 2017 at 8:39 AM, Peter Mattis ***@***.***> wrote:
***@***.**** commented on this pull request.
I'd prefer a separate change for the 5.1.2 bump, though I do want to do
that.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#37 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABdsPM1xlsVqGMKRHveCiD-n8MVtDheCks5rft16gaJpZM4MKq58>
.
|
Decided to update to 5.1.2 while I'm here, but let me know if you'd prefer that as a separate change.