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

don't compile FTS stopwords into the shell

    • Server Development Platform
    • ALL

      Apply this diff:

      diff --git a/src/mongo/base/initializer.cpp b/src/mongo/base/initializer.cpp
      index 77e6c34..8b28a8f 100644
      --- a/src/mongo/base/initializer.cpp
      +++ b/src/mongo/base/initializer.cpp
      @@ -55,6 +55,7 @@ namespace mongo {
                                     sortedNodes[i] + '"');
                   }
                   try {
      +                std::cout << "Executing initializer: " << sortedNodes[i] << std::endl;
                       status = fn(&context);
                   } catch( const DBException& xcp ) {
                       return xcp.toStatus();
      
      

      compile the mongo shell and run it. output:

      ➜  mongo git:(master) ✗ ./mongo
      Executing initializer: OIDGeneration
      Executing initializer: ValidateLocale
      Executing initializer: GlobalLogManager
      Executing initializer: BeginStartupOptionHandling
      Executing initializer: BeginStartupOptionRegistration
      Executing initializer: BeginGeneralStartupOptionRegistration
      Executing initializer: MongoShellOptions_Register
      Executing initializer: EndGeneralStartupOptionRegistration
      Executing initializer: EndStartupOptionRegistration
      Executing initializer: BeginStartupOptionParsing
      Executing initializer: StartupOptions_Parse
      Executing initializer: EndStartupOptionParsing
      Executing initializer: BeginStartupOptionValidation
      Executing initializer: MongoShellOptions_Validate
      Executing initializer: EndStartupOptionValidation
      Executing initializer: BeginStartupOptionStorage
      Executing initializer: MongoShellOptions_Store
      Executing initializer: EndStartupOptionStorage
      Executing initializer: EndStartupOptionHandling
      Executing initializer: default
      Executing initializer: SystemInfo
      Executing initializer: SaslClientAuthenticateFunction
      Executing initializer: languageNldV1
      Executing initializer: languageEsV1
      Executing initializer: FailPointRegistry
      Executing initializer: dummy
      Executing initializer: languageHunV1
      Executing initializer: languageFiV1
      Executing initializer: languageDutchV2
      Executing initializer: languageDanV1
      Executing initializer: languageGerV1
      Executing initializer: JavascriptPrintDomain
      Executing initializer: languageDeV1
      Executing initializer: languageFrenchV1
      Executing initializer: languageNorwegianV1
      Executing initializer: S2CellIdInit
      Executing initializer: languageTurkishV1
      Executing initializer: languageFreV1
      Executing initializer: languageFinnishV2
      Executing initializer: languageSpanishV1
      Executing initializer: languageDaV1
      Executing initializer: languageNorwegianV2
      Executing initializer: languageSwedishV2
      Executing initializer: throwSockExcep
      Executing initializer: languageNoV1
      Executing initializer: languageTurkishV2
      Executing initializer: languageSpanishV2
      Executing initializer: ExtractSOMap
      Executing initializer: languageSwedishV1
      Executing initializer: FTSIndexFormat
      Executing initializer: languageRussianV2
      Executing initializer: languagePorV1
      Executing initializer: languageDutV1
      Executing initializer: languagePortugueseV1
      Executing initializer: languageHuV1
      Executing initializer: languagePorterV1
      Executing initializer: languageSvV1
      Executing initializer: allocateDiskFull
      Executing initializer: RamLogCatalog
      Executing initializer: languageRussianV1
      Executing initializer: languageSpaV1
      Executing initializer: languageFinV1
      Executing initializer: languageDutchV1
      Executing initializer: languageRomanianV2
      Executing initializer: languageHungarianV2
      Executing initializer: languageDanishV1
      Executing initializer: languageFrV1
      Executing initializer: languageRomanianV1
      Executing initializer: languageSweV1
      Executing initializer: languageNoneV2
      Executing initializer: languageFinnishV1
      Executing initializer: languageEslV1
      Executing initializer: languagePtV1
      Executing initializer: languageEnglishV2
      Executing initializer: languageTrV1
      Executing initializer: languageGermanV2
      Executing initializer: languageItalianV2
      Executing initializer: languageRoV1
      Executing initializer: languageRonV1
      Executing initializer: languageFrenchV2
      Executing initializer: languageItV1
      Executing initializer: languageHungarianV1
      Executing initializer: languageEnV1
      Executing initializer: languageNoneV1
      Executing initializer: languageRusV1
      Executing initializer: languagePortugueseV2
      Executing initializer: languageEnglishV1
      Executing initializer: languageRuV1
      Executing initializer: languageTurV1
      Executing initializer: languageNorV1
      Executing initializer: languageDeuV1
      Executing initializer: languageFraV1
      Executing initializer: languageGermanV1
      Executing initializer: languageItaV1
      Executing initializer: languageItalianV1
      Executing initializer: languageRumV1
      Executing initializer: languageNlV1
      Executing initializer: languageDanishV2
      Executing initializer: languageEngV1
      Executing initializer: FTSAllLanguagesRegistered
      Executing initializer: FTSRegisterLanguageAliases
      Executing initializer: NativeSaslClientContext
      Executing initializer: V8MongoPrototypeManipulatorRegistry
      Executing initializer: SetupDottedNames
      Executing initializer: S2RegionCovererInit
      Executing initializer: V8MongoPrototypeManipulatorRegistrationDone
      Executing initializer: LogstreamBuilder
      Executing initializer: StopWords
      Executing initializer: AllFailPointsRegistered
      MongoDB shell version: 2.8.0-rc4-pre-
      connecting to: test
      Server has startup warnings: 
      2014-12-18T10:54:48.730-0500 I CONTROL  [initandlisten] 
      2014-12-18T10:54:48.730-0500 I CONTROL  [initandlisten] ** WARNING: soft rlimits too low. Number of files is 256, should be at least 1000
      

      seems like we are compiling the FTS files into the shell, seems unnecessary.

            Assignee:
            backlog-server-devplatform [DO NOT ASSIGN] Backlog - Server Development Platform Team (SDP) (Inactive)
            Reporter:
            adam.midvidy Adam Midvidy
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: