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

Multiple independent copies of google/glog present in memcached process

    XMLWordPrintable

Details

    • Triaged
    • 1
    • Unknown

    Description

      As found when trying to fix MB-43525, we currently link multiple copies of the glog library into the memcached process (every place we link Folly). This is a problem because glog doesn't use a suitable singleton to be able to support this usage; meaning you essentially have to initialise and configure it once for every instance which exists.

      For example, we cannot address MB-43525 without having to call google::InitGoogleLogging and configure a custom log sink from every place where glog is linked.

      To address this we need to end up with just one copy of glog - either by

      1. making glog a shared library instead of static, or
      2. linking everything which uses glog into a single static binary.

      Attachments

        Issue Links

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

          Activity

            People

              drigby Dave Rigby (Inactive)
              drigby Dave Rigby (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty