CollectionStatsResult.MaxDocuments throws an InavlidCastException for capped collections

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 1.8
    • Affects Version/s: 1.7
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The driver is expecting the server to return MaxDocuments as an Int32, but it's actually being returned as a Double, which is causing an InvalidCastException.

      Make the driver able to deal with MaxDocuments returned as any numeric type (by calling ToInt32 instead of AsInt32).

              Assignee:
              Robert Stam
              Reporter:
              Robert Stam
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: