Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-1064

mongoimport alwasy returns 0 imported documents when compiled with gccgo

    • Platforms 10 (02/19/16)
    • Not Needed

      Per the golang specification:

      At package level, initialization dependencies determine the evaluation order of individual initialization expressions in variable declarations. Otherwise, when evaluating the operands of an expression, assignment, or return statement, all function calls, method calls, and communication operations are evaluated in lexical left-to-right order.

      This means that this code

      return imp.insertionCount, channelQuorumError(processingErrChan, 2)
      

      will return zero per the go language spec.

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

              Created:
              Updated:
              Resolved: