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

Add a tassertStatusOK() macro to assert_util.h

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Internal Code
    • Labels:
      None
    • Service Arch

      A common code pattern is to ensure that the result of some operation was Status::OK().

      Example:

      Instead of this:
      
      tassert(3401202, "Error message", status);
      
      do this:
      
      tassertStatusOK(status);

            Assignee:
            backlog-server-servicearch [DO NOT USE] Backlog - Service Architecture
            Reporter:
            timour.katchaounov@mongodb.com Timour Katchaounov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: