Skip to content

Track disk size#5

Merged
kev1n80 merged 13 commits into
masterfrom
TrackDiskSize
Jun 14, 2021
Merged

Track disk size#5
kev1n80 merged 13 commits into
masterfrom
TrackDiskSize

Conversation

@kev1n80
Copy link
Copy Markdown
Owner

@kev1n80 kev1n80 commented Jun 9, 2021

Implementation

  • If using the disk size limit feature
    • Track the number of bytes written that do not have the .bad file extension with writeBytes
    • Write writeBytes to MetaData

Testing

  • test that writeBytes increment after putting data
  • test that writeBytes decrements when a file is completely read

Next PR

  • implement disk size limit feature that will delete the oldest file first in order to make space

Copy link
Copy Markdown
Collaborator

@leonzz leonzz left a comment

Choose a reason for hiding this comment

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

LGTM

Comment thread diskqueue.go Outdated
Comment thread diskqueue.go Outdated
Comment thread diskqueue.go Outdated
@kev1n80 kev1n80 merged commit 6525bb0 into master Jun 14, 2021
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.

4 participants