]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
Add public API RateLimiter::GetTotalPendingRequests() (#8890)
authorHui Xiao <huixiao@fb.com>
Fri, 10 Sep 2021 15:35:59 +0000 (08:35 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Fri, 10 Sep 2021 15:37:04 +0000 (08:37 -0700)
commit12542488ef587f405a019250ee512ee2936807f6
treeffb49a558fbc332677bcb51f117b40d2d8877fff
parent0fb938c4482af318817b9d0737a741681b59a117
Add public API RateLimiter::GetTotalPendingRequests() (#8890)

Summary:
Context/Summary:
As users requested, a public API RateLimiter::GetTotalPendingRequests() is added to expose the total number of pending requests for bytes in the rate limiter, which is the size of the request queue of that priority (or of all priorities, if IO_TOTAL is interested) at the time when this API is called.

Pull Request resolved: https://github.com/facebook/rocksdb/pull/8890

Test Plan:
- Passing added new unit tests
- Passing existing unit tests

Reviewed By: ajkr

Differential Revision: D30815500

Pulled By: hx235

fbshipit-source-id: 2dfa990f651c1c47378b6215c751ad76a5824300
HISTORY.md
include/rocksdb/rate_limiter.h
util/rate_limiter.cc
util/rate_limiter.h
util/rate_limiter_test.cc