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

Add a tassertStatusOK() macro to assert_util.h

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • Internal Code
    • None
    • Service Arch

    Description

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

      Attachments

        Activity

          People

            backlog-server-servicearch Backlog - Service Architecture
            timour.katchaounov@mongodb.com Timour Katchaounov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: