-
Couldn't load subscription status.
- Fork 13
FBSW-208 Moved common segment code for posix and file shm segments into ShmCommon #7
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
Conversation
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.
Reviewable status: 0 of 4 files reviewed, 1 unresolved discussion (waiting on @guptask and @victoria-mcgrath)
cachelib/shm/ShmCommon.cpp, line 166 at r1 (raw file):
util::throwSystemError(errno, "invalid fd"); } return fd;
Why did you remove the switch for errno? I think the behavior might be different after this change.
bd400cd to
60d92e5
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.
Reviewable status: 0 of 4 files reviewed, 1 unresolved discussion (waiting on @igchor and @victoria-mcgrath)
cachelib/shm/ShmCommon.cpp, line 166 at r1 (raw file):
Previously, igchor (Igor Chorążewicz) wrote…
Why did you remove the switch for errno? I think the behavior might be different after this change.
Reverted to the errno switch case handling
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.
, but I would like to wait with merging this until #6 and #2 (which contains some fixes for tests) is merged. it would be good to verify if all the tests are passing on CI for this change.
Reviewable status: 0 of 4 files reviewed, all discussions resolved (waiting on @victoria-mcgrath)
ec3940a to
312524b
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.
Reviewable status: 0 of 7 files reviewed, 2 unresolved discussions (waiting on @guptask and @victoria-mcgrath)
cachelib/shm/FileShmSegment.cpp, line 219 at r4 (raw file):
int FileShmSegment::createNewSegment(const std::string& name) { constexpr static int createFlags = O_RDWR | O_CREAT | O_EXCL;
why you removed constexpr static?
cachelib/shm/ShmCommon.h, line 47 at r4 (raw file):
}; // TODO(SHM_FILE): maybe we could use this inside the Tier Config class?
this should be removed
b1e197f to
a0d4a7c
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.
Reviewed 4 of 4 files at r2, 3 of 4 files at r4, 3 of 3 files at r5, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @guptask)
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.
Reviewable status:
complete! all files reviewed, all discussions resolved (waiting on @guptask)
This change is