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

Add a tassertStatusOK() macro to assert_util.h

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor - P4
    • Resolution: Duplicate
    • None
    • None
    • Internal Code
    • None

    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

        Issue Links

          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: