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

Fix --use-system-icu

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0, 7.0.0-rc1
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v7.0
    • Security 2023-05-15

      When using --use-system-icu, a cycle is created in the mongo initializers which causes mongod not to start.

      Fix:

      diff --git a/src/mongo/util/icu_init_stub.cpp b/src/mongo/util/icu_init_stub.cpp
      index 70c641fdcc3..8f5aea136ba 100644
      --- a/src/mongo/util/icu_init_stub.cpp
      +++ b/src/mongo/util/icu_init_stub.cpp
      @@ -36,7 +36,7 @@ namespace {
      
       // This initializer provides a no-op definition of the LoadICUData MONGO_INITIALIZER, for use when
       // the system version of ICU is used instead of the vendored version.
      -MONGO_INITIALIZER(LoadICUData)(InitializerContext* context) {}
      +MONGO_INITIALIZER_GENERAL(LoadICUData, (), ("BeginStartupOptionHandling"))(InitializerContext* context) {}
      
       }  // namespace
       }  // namespace mongo
      

            Assignee:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Reporter:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: