Skip to content

[fix]Limiter class bug in env_posix #946#963

Closed
duststarr wants to merge 1 commit into
google:masterfrom
duststarr:max-acquires-check
Closed

[fix]Limiter class bug in env_posix #946#963
duststarr wants to merge 1 commit into
google:masterfrom
duststarr:max-acquires-check

Conversation

@duststarr

Copy link
Copy Markdown

As the issue #946 .
Add a check for max_acquires when Release() called to ignore redundant calls.

@ghemawat

ghemawat commented Dec 15, 2021 via email

Copy link
Copy Markdown
Contributor

@dencesun

Copy link
Copy Markdown

good

@pwnall

pwnall commented Dec 20, 2021

Copy link
Copy Markdown
Member

We could do something like pwnall@0bc209d to make it obvious that calling Limiter::Release() too many times is a bug in the Limiter client.

@pwnall

pwnall commented Dec 22, 2021

Copy link
Copy Markdown
Member

Landed the above in 335876a

@pwnall pwnall closed this Dec 22, 2021
@duststarr

Copy link
Copy Markdown
Author

Good solution.

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