Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-59185

std::shared_mutex and boost::shared_mutex are disallowed but no stdx:: exists

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Service Arch
    • ALL

      Lint complains that std::shared_lock (and boost::shared_lock) should not be used, in favor of stdx::shared_lock:

      Error: src/mongo/db/storage/storage_engine_change_context.h:54 - mongodb/polyfill - Illegal use of banned name from std::/boost:: for "std::shared_lock", use mongo::stdx:: variant instead

      But there is no stdx::shared_lock
      In file included from src/mongo/db/storage/storage_engine_init.cpp:45:
      src/mongo/db/storage/storage_engine_change_context.h:76:22: error: no member named 'shared_lock' in namespace 'mongo::stdx'
      return stdx::shared_lock(_storageChangeSpinlock);

            Assignee:
            backlog-server-servicearch [DO NOT USE] Backlog - Service Architecture
            Reporter:
            matthew.russotto@mongodb.com Matthew Russotto
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: