Fix IDL compiler's duplicate command check

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Server Programmability
    • SP Prioritized List
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      The IDL compiler currently throws a "duplicate symbol" error when we specify the same string for one command's command_name and another's command_alias. This error is not present when the same string is specified for one command's command_name and another command's command_name. 

      Option A (throws error):
      clusterMergeChunks:
      command_name: mergeChunks
      cpp_name: ClusterMergeChunks

      _shardsvrMergeChunks:
      command_name: _shardsvrMergeChunks
      command_alias: mergeChunks
      cpp_name: ShardsvrMergeChunks

      Option B (no error):
      clusterMergeChunks:
      command_name: mergeChunks
      cpp_name: ClusterMergeChunks

      _shardsvrMergeChunks:
      command_name: mergeChunks
      command_alias: _shardsvrMergeChunks
      cpp_name: ShardsvrMergeChunks

      We should remove the duplicate check for commands since the IDL doesn't have a holistic view of all the command names anyways. We should also investigate why this is the case.

            Assignee:
            Unassigned
            Reporter:
            Jane Tio
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: