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

Move the lock from inside BufferLog to be folly::Synchronized<BufferLog>

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • Morpheus
    • Morpheus
    • couchbase-bucket
    • None
    • Untriaged
    • 0
    • Unknown

    Description

      Refactor the code DcpProducer::BufferLog to be "lock free", but let the DcpProducer use a folly::Synchronized<BufferLog>. We don't really need a RW lock as:

      a) The locked scope is really small

      b) The odds of having multiple readers is small

       

       

       

      Attachments

        For Gerrit Dashboard: MB-61275
        # Subject Branch Project Status CR V

        Activity

          People

            trond Trond Norbye
            trond Trond Norbye
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty