mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-16 19:02:20 +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)
|
.. 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
|
Transaction
|
||||||
===========
|
===========
|
||||||
|
@ -137,9 +137,9 @@ class Net2 final : public INetwork, public INetworkConnections {
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
void updateStarvationTracker(struct NetworkMetrics::PriorityStats& binStats,
|
void updateStarvationTracker(struct NetworkMetrics::PriorityStats& binStats,
|
||||||
TaskPriority priority,
|
TaskPriority priority,
|
||||||
TaskPriority lastPriority,
|
TaskPriority lastPriority,
|
||||||
double now);
|
double now);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Net2(const TLSConfig& tlsConfig, bool useThreadPool, bool useMetrics);
|
Net2(const TLSConfig& tlsConfig, bool useThreadPool, bool useMetrics);
|
||||||
@ -1589,9 +1589,9 @@ void Net2::run() {
|
|||||||
|
|
||||||
// Updates the PriorityStats found in NetworkMetrics
|
// Updates the PriorityStats found in NetworkMetrics
|
||||||
void Net2::updateStarvationTracker(struct NetworkMetrics::PriorityStats& binStats,
|
void Net2::updateStarvationTracker(struct NetworkMetrics::PriorityStats& binStats,
|
||||||
TaskPriority priority,
|
TaskPriority priority,
|
||||||
TaskPriority lastPriority,
|
TaskPriority lastPriority,
|
||||||
double now) {
|
double now) {
|
||||||
|
|
||||||
// Busy -> idle at binStats.priority
|
// Busy -> idle at binStats.priority
|
||||||
if (binStats.priority > priority && binStats.priority <= lastPriority) {
|
if (binStats.priority > priority && binStats.priority <= lastPriority) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user