Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-123

MongoMapReduceResult throws an exception when I try to access the Duration value

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 0.9
    • Affects Version/s: 0.7
    • Component/s: None
    • None
    • Environment:
      Win 7, .NET 4, VS 2010

      Accessing the Duration property on the results of a Map Reduce operation causes an Exception because it isn't getting a double value back from MongoDB, it seems to be getting an integer value back for the "timeMillis".

      Here are the relevant lines of code from MongoMapReduceResult.cs

      public TimeSpan Duration {
      get

      { return TimeSpan.FromMilliseconds(commandResult["timeMillis"].AsDouble()); }

      }

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            ianmercer Ian Mercer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: