Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(16633)

Issue 70480044: code review 70480044: os: try openFile before openDir in windows os.OpenFile

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 1 month ago by patrick2
Modified:
10 years, 1 month ago
Reviewers:
brainman
CC:
golang-codereviews, brainman, bradfitz
Visibility:
Public.

Description

os: try openFile before openDir in windows os.OpenFile Logging calls when running "go install -a std" turns: 547 openDir succeeded 3593 openDir failed and fell back to openFile 3592 openFile succeeded 1 both failed into: 3592 openFile succeeded 548 openFile failed and fell back 547 openDir succeeded 1 both failed Here the change trades 3593 failed openDir for 548 failed openFile. Fix issue 7426.

Patch Set 1 #

Patch Set 2 : diff -r f59cadfcb3f7 https://code.google.com/p/go/ #

Patch Set 3 : diff -r f59cadfcb3f7 https://code.google.com/p/go/ #

Patch Set 4 : diff -r f59cadfcb3f7 https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -8 lines) Patch
M src/pkg/os/file_windows.go View 1 1 chunk +7 lines, -8 lines 0 comments Download

Messages

Total messages: 7
patrick2
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go/
10 years, 1 month ago (2014-03-02 14:23:21 UTC) #1
brainman
LGTM But, please, remove this paragraph: According to CreateFile documentation, it operates on directories only ...
10 years, 1 month ago (2014-03-04 01:31:22 UTC) #2
patrick2
On 2014/03/04 01:31:22, brainman wrote: > LGTM > > But, please, remove this paragraph: > ...
10 years, 1 month ago (2014-03-04 06:32:31 UTC) #3
patrick2
Fixed, PTAL.
10 years, 1 month ago (2014-03-04 06:39:10 UTC) #4
brainman
On 2014/03/04 06:39:10, patrick2 wrote: > Fixed, PTAL. Still looks good. I will submit it ...
10 years, 1 month ago (2014-03-04 06:40:50 UTC) #5
bradfitz
On Mon, Mar 3, 2014 at 10:40 PM, <alex.brainman@gmail.com> wrote: > On 2014/03/04 06:39:10, patrick2 ...
10 years, 1 month ago (2014-03-04 17:02:49 UTC) #6
brainman
10 years, 1 month ago (2014-03-05 01:20:38 UTC) #7
*** Submitted as https://code.google.com/p/go/source/detail?r=4cd83f2e218e ***

os: try openFile before openDir in windows os.OpenFile

Logging calls when running "go install -a std" turns:

  547  openDir succeeded
  3593 openDir failed and fell back to openFile
  3592 openFile succeeded
  1    both failed

into:

  3592 openFile succeeded
  548  openFile failed and fell back
  547  openDir succeeded
  1    both failed

Here the change trades 3593 failed openDir for 548 failed openFile.

Fix issue 7426.

LGTM=alex.brainman
R=golang-codereviews, alex.brainman, bradfitz
CC=golang-codereviews
https://codereview.appspot.com/70480044

Committer: Alex Brainman <alex.brainman@gmail.com>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b