forked from nsqio/go-diskqueue
-
Notifications
You must be signed in to change notification settings - Fork 4
Track the Number of Messages #1
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
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
5a4a043
Keep track of the number of messages in the writeFile and the number …
kev1n80 15339eb
Update tests to reflect changes made to the metadata file. Metadata f…
kev1n80 ddadcb9
Test thtat write messages resets when a new file is created.
kev1n80 609f5c9
Add a test that checks if meta data file is correct after writing a c…
kev1n80 cd45da2
Allocate 8 bytes instead of 4 since writeMessages is in64, and reset …
kev1n80 eeaa65a
Update comment about number of bytes reserved for writeMessages.
kev1n80 2496eff
Allow user to choose whether to use new feature or not.
kev1n80 b35c029
Separate testing from the original with the implementation of depth f…
kev1n80 5cdd0ae
Revert to original code style.
kev1n80 fcb31cc
Add comment for functions.
kev1n80 c90f17f
Explain that maxBytesDiskSpace is 0 when user is not using disk space…
kev1n80 a28e6d5
Add explicit disk size limit feature flag.
kev1n80 293a774
Add a new line after if block.
kev1n80 4c956aa
Track the disk space the files tracked by DiskQueue takes up, and tes…
kev1n80 48c7a85
Update totalBytes and writePos when writing number of messages, and r…
kev1n80 652b548
Remove the additional 8 bytes to totalBytes.
kev1n80 b07cec4
Revert "Remove the additional 8 bytes to totalBytes."
kev1n80 5968b13
Revert "Update totalBytes and writePos when writing number of message…
kev1n80 53c0e47
Revert changes that removed the additional 8 bytes.
kev1n80 a3ce86a
Add comment to make code more readable.
kev1n80 3ed7338
Add test that completes the write file by meeting the file size limit…
kev1n80 30c6ef6
Add extra testing to validate the increment/decrement of bytes in cor…
kev1n80 76a0ddd
Merge branch 'TrackDiskSize' into DepthImpl
kev1n80 e9b23ac
Update variable names.
kev1n80 7acba5f
Revert "Update variable names."
kev1n80 7032086
Merge branch 'DepthImpl' of https://github.com/kev1n80/go-diskqueue i…
kev1n80 92819e1
Revert "Merge branch 'TrackDiskSize' into DepthImpl"
kev1n80 2616c7e
Update variable names.
kev1n80 5cd6288
Replace 8 with a constant to improve readability.
kev1n80 24fe56a
Reset Diskqueue data during readError.
kev1n80 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.