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

Itemlog #1

Merged
merged 11 commits into from
Dec 19, 2017
Merged

Itemlog #1

merged 11 commits into from
Dec 19, 2017

Conversation

neuyilan
Copy link
Collaborator

the shared memory status have been write to log file, and test success.

int32_t SIZE_OF_FILE = 20 * 1024 * 1024 * 1024;//the size of the SSD file, default is 20GB
int32_t SIZE_OF_BLOCK = 64 * 1024 * 1024; //the size of the bucket size
int64_t SHM_SIZE = 4096;//the size of shared memory
int64_t SIZE_OF_FILE = 20 << 30;//the size of the SSD file, default is 20GB
Copy link
Contributor

Choose a reason for hiding this comment

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

you should still use 20 * 1024 * 1024 * 1024, that's more readable

//
// int pid = DecodeFixed32(res + offset);
// LOG(INFO, "FileSystemImpl::readFileStatusFromLog pid = %d", pid);
// close(logFd);
Copy link
Contributor

Choose a reason for hiding this comment

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

Are the comments still valuable? Remove junk codes, thanks

@Eric5553 Eric5553 merged commit eb2f4eb into HashDataInc:master Dec 19, 2017
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

2 participants