Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-46652

Convert DbResponse to have a validated ctor

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Service Arch
    • Fully Compatible

      DbResponse currently uses default and list constructors. The default constructor is used for stack initialization only—it should go away in favor of boost::optional<DbResponse>. We should add additional constructors that validate and otherwise convert their arguments into a valid DbResponse. In short, when you have a DbResponse in hand, it should be valid enough to send back to return to a user.

            Assignee:
            backlog-server-servicearch [DO NOT USE] Backlog - Service Architecture
            Reporter:
            ben.caimano@mongodb.com Benjamin Caimano (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: