mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-15 18:32:18 +08:00
address pr comments
This commit is contained in:
parent
e174ea0dfd
commit
ea16d2cccd
@ -484,7 +484,7 @@ An |database-blurb1| Modifications to a database are performed via transactions.
|
||||
|
||||
.. function:: double fdb_database_get_main_thread_busyness(FDBDatabase* database)
|
||||
|
||||
Returns a value where 0 indicates that the client is idle and a value of 1 (or larger) indicates that the client is saturated. By default, this value is updated every second.
|
||||
Returns a value where 0 indicates that the client is idle and 1 (or larger) indicates that the client is saturated. By default, this value is updated every second.
|
||||
|
||||
Transaction
|
||||
===========
|
||||
|
@ -137,9 +137,9 @@ class Net2 final : public INetwork, public INetworkConnections {
|
||||
|
||||
private:
|
||||
void updateStarvationTracker(struct NetworkMetrics::PriorityStats& binStats,
|
||||
TaskPriority priority,
|
||||
TaskPriority lastPriority,
|
||||
double now);
|
||||
TaskPriority priority,
|
||||
TaskPriority lastPriority,
|
||||
double now);
|
||||
|
||||
public:
|
||||
Net2(const TLSConfig& tlsConfig, bool useThreadPool, bool useMetrics);
|
||||
@ -1589,9 +1589,9 @@ void Net2::run() {
|
||||
|
||||
// Updates the PriorityStats found in NetworkMetrics
|
||||
void Net2::updateStarvationTracker(struct NetworkMetrics::PriorityStats& binStats,
|
||||
TaskPriority priority,
|
||||
TaskPriority lastPriority,
|
||||
double now) {
|
||||
TaskPriority priority,
|
||||
TaskPriority lastPriority,
|
||||
double now) {
|
||||
|
||||
// Busy -> idle at binStats.priority
|
||||
if (binStats.priority > priority && binStats.priority <= lastPriority) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user