[CSHARP-123] MongoMapReduceResult throws an exception when I try to access the Duration value Created: 04/Dec/10  Updated: 02/Apr/15  Resolved: 04/Dec/10

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: 0.7
Fix Version/s: 0.9

Type: Bug Priority: Major - P3
Reporter: Ian Mercer Assignee: Robert Stam
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Win 7, .NET 4, VS 2010



 Description   

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()); }

}



 Comments   
Comment by Robert Stam [ 04/Dec/10 ]

Was already fixed but there was no previous JIRA ticket for it.

Generated at Wed Feb 07 21:35:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.