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

feat: add thread-safe access to CountingWriter byte total #22620

Merged
merged 1 commit into from
Oct 4, 2021

Conversation

davidby-influx
Copy link
Contributor

@davidby-influx davidby-influx commented Oct 4, 2021

Use atomic operations to update and report CountingWriter.Total through a new method.

Closes #22618

Copy link
Contributor

@serenibyss serenibyss left a comment

Choose a reason for hiding this comment

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

LGTM

@davidby-influx davidby-influx merged commit 022b6e8 into master-1.x Oct 4, 2021
@davidby-influx davidby-influx deleted the DSB_backup_estimation branch October 4, 2021 23:49
davidby-influx added a commit that referenced this pull request Oct 15, 2021
Use atomic operations to update and report CountingWriter.Total through a new method.

closes #22618

(cherry picked from commit 022b6e8)
davidby-influx added a commit that referenced this pull request Oct 15, 2021
…22682)

Use atomic operations to update and report CountingWriter.Total through a new method.

closes #22618

(cherry picked from commit 022b6e8)

closes #22619
chengshiwen pushed a commit to chengshiwen/influxdb that referenced this pull request Sep 1, 2024
…#22620)

Use atomic operations to update and report CountingWriter.Total through a new method.

closes influxdata#22618
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow asynchronous access to CountingWriter.Total for backup progress reporting
2 participants