Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-37001

Refactor computeMemUsed into a separate class

    XMLWordPrintable

Details

    Description

      Currently, freePages() manipulate stats depending on different actions (compact, evict recovery). The logic can be pushed down to individual page actions. These page actions can collect stats at a page level, and the plasma stats will be updated accordingly in updateMapping().

      Currently, stats on a page is executed through a single function computeMemUsed(). This function can be made into a independent class that walks down the page delta and collects stats as a result. This can be called from individual page action to collect page level stats.

      Unlike page walker, this class will not read records from disk.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jliang John Liang
            jliang John Liang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty