Skip to content

Conversation

@danbev
Copy link
Contributor

@danbev danbev commented Mar 26, 2018

This commit renames fs_req_wrap to FSReqWrapSync to make it consistent
with most of the other classes in the code base.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

This commit renames fs_req_wrap to FSReqWrapSync to make it consistent
with most of the other classes in the code base.
@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. fs Issues and PRs related to the fs subsystem / file system. labels Mar 26, 2018
@danbev
Copy link
Contributor Author

danbev commented Mar 26, 2018

Copy link
Member

@joyeecheung joyeecheung left a comment

Choose a reason for hiding this comment

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

Thanks, I was thinking about renaming this but struggled with coming up with a good name...FSReqWrapSync seems perfect

} else { // access(path, mode, undefined, ctx)
CHECK_EQ(argc, 4);
fs_req_wrap req_wrap;
FSReqWrapSync req_wrap;
Copy link
Member

Choose a reason for hiding this comment

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

In retrospect variables like this can be renamed req_wrap_sync and those FSReqBase* can be renamed req_wrap_async to avoid the confusion of name shadowing..not really what this PR needs to deal with though.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I noticed that too and think we should change that. I'll follow up this is in a different PR. Thanks!

@trivikr
Copy link
Member

trivikr commented Mar 28, 2018

@danbev
Copy link
Contributor Author

danbev commented Mar 29, 2018

node-test-commit failure looks unrelated

console output:

Building addon /home/iojs/build/workspace/node-test-commit-plinux/nodes/ppcle-ubuntu1404/test/addons/stringbytes-external-exceed-max/
gyp   '/home/iojs/build/workspace/node-test-commit-plinux/nodes/ppcle-ubuntu1404/test/addons-napi/test_symbol/build/config.gypi',
make[2]: write error
gyp info spawn argsmake[1]: *** [doc-only] Error 1
   '-I',
gypmake[1]: *** Waiting for unfinished jobs....

@danbev
Copy link
Contributor Author

danbev commented Mar 29, 2018

Landed in 376f949.

@danbev danbev closed this Mar 29, 2018
@danbev danbev deleted the rename_fs_req_wrap branch March 29, 2018 05:52
danbev added a commit that referenced this pull request Mar 29, 2018
This commit renames fs_req_wrap to FSReqWrapSync to make it consistent
with most of the other classes in the code base.

PR-URL: #19614
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
danbev added a commit to danbev/node that referenced this pull request Apr 3, 2018
This commit renames the req_wrap variable to use an -async/-sync
suffix to avoid cases where the variables were being shadowed.

Refs: nodejs#19614
danbev added a commit that referenced this pull request Apr 3, 2018
This commit renames the req_wrap variable to use an -async/-sync
suffix to avoid cases where the variables were being shadowed.

PR-URL: #19628
Refs: #19614
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
alexeykuzmin added a commit to electron/node that referenced this pull request Apr 27, 2018
src: rename fs_req_wrap -> FSReqWrapSync
nodejs/node#19614
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ Issues and PRs that require attention from people who are familiar with C++. fs Issues and PRs related to the fs subsystem / file system.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants