Skip to content
#

distributed-sql-database

Here are 11 public repositories matching this topic...

yugabyte-db
rahuldesirazu
rahuldesirazu commented Mar 9, 2021

On each heartbeat, master calls TSDescriptor methods like

  void set_num_sst_files (uint64_t num_sst_files) {
    std::lock_guard<decltype(lock_)> l(lock_);
    ts_metrics_.num_sst_files = num_sst_files;
  }

that takes a write lock, sets a field, and releases the write lock. To avoid doing this many times over for each individual field, create a method that takes a lock once and

Improve this page

Add a description, image, and links to the distributed-sql-database topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the distributed-sql-database topic, visit your repo's landing page and select "manage topics."

Learn more