MCPcopy Create free account
hub / github.com/Tencent/phxsql / compute_statistics

Method compute_statistics

phx_percona/percona/sql/binlog.cc:552–560  ·  view source on GitHub ↗

This function computes binlog cache and disk usage. */

Source from the content-addressed store, hash-verified

550 This function computes binlog cache and disk usage.
551 */
552 void compute_statistics()
553 {
554 if (!is_binlog_empty())
555 {
556 statistic_increment(*ptr_binlog_cache_use, &LOCK_status);
557 if (cache_log.disk_writes != 0)
558 statistic_increment(*ptr_binlog_cache_disk_use, &LOCK_status);
559 }
560 }
561
562 /*
563 Stores the values of maximum size of the cache allowed when this cache

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected