<section>
 <h1 class="contains-headerlink leafygreen-ui-41fr9s" weight="medium">
  $currentOp (aggregation)
  <a class="headerlink leafygreen-ui-1kepx47" href="#-currentop--aggregation-" title="Permalink to this heading">
   <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
    <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
    </path>
    <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
    </path>
   </svg>
   <div class="css-1btu0w3 evvkmar0" id="-currentop--aggregation-">
   </div>
  </a>
 </h1>
 <div class="leafygreen-ui-a5yxub">
  <p class="css-1cmx2d4 ef7gu8j0">
   On this page
  </p>
  <ul class="css-1qb0mst ef7gu8j1">
   <li class="leafygreen-ui-1e7a0ei">
    <a class="lg-ui-0001 leafygreen-ui-e98ikf" href="#definition" target="_self">
     <span>
      Definition
     </span>
    </a>
   </li>
   <li class="leafygreen-ui-1jqtqlb">
    <a class="lg-ui-0001 leafygreen-ui-cpmeq5" href="#constraints" target="_self">
     <span>
      Constraints
     </span>
    </a>
   </li>
   <li class="leafygreen-ui-1jqtqlb">
    <a class="lg-ui-0001 leafygreen-ui-cpmeq5" href="#examples" target="_self">
     <span>
      Examples
     </span>
    </a>
   </li>
   <li class="leafygreen-ui-1jqtqlb">
    <a class="lg-ui-0001 leafygreen-ui-cpmeq5" href="#output-fields" target="_self">
     <span>
      Output Fields
     </span>
    </a>
   </li>
  </ul>
 </div>
 <section>
  <h2 class="contains-headerlink leafygreen-ui-19f71ei" weight="medium">
   Definition
   <a class="headerlink leafygreen-ui-1kepx47" href="#definition" title="Permalink to this heading">
    <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
     <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
     </path>
     <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
     </path>
    </svg>
    <div class="css-1btu0w3 evvkmar0" id="definition">
    </div>
   </a>
  </h2>
  <dl class="pipeline">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-pipeline-pipe.-currentOp" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-pipeline-pipe.-currentOp">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     Returns a stream of documents containing information on active
and/or dormant operations as well as inactive sessions that are
holding locks as part of a transaction. The stage returns a document
for each operation or session. To run
     <code class="leafygreen-ui-1l06pbn">
      $currentOp
     </code>
     , use
the
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/method/db.aggregate/#mongodb-method-db.aggregate">
      <code class="leafygreen-ui-1l06pbn">
       db.aggregate()
      </code>
     </a>
     helper on the
     <code class="leafygreen-ui-1l06pbn">
      admin
     </code>
     database.
    </p>
    <p class="leafygreen-ui-1kp3ins">
     The
     <code class="leafygreen-ui-1l06pbn">
      $currentOp
     </code>
     aggregation stage is preferred over the
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/currentOp/#mongodb-dbcommand-dbcmd.currentOp">
      <code class="leafygreen-ui-1l06pbn">
       currentOp
      </code>
     </a>
     command and its
     <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://www.mongodb.com/docs/mongodb-shell/#mongodb-binary-bin.mongosh" target="_self">
      <span>
       <code class="leafygreen-ui-1l06pbn">
        mongosh
       </code>
      </span>
     </a>
     helper method
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/method/db.currentOp/#mongodb-method-db.currentOp">
      <code class="leafygreen-ui-1l06pbn">
       db.currentOp()
      </code>
     </a>
     . Because the
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/currentOp/#mongodb-dbcommand-dbcmd.currentOp">
      <code class="leafygreen-ui-1l06pbn">
       currentOp
      </code>
     </a>
     command and
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/method/db.currentOp/#mongodb-method-db.currentOp">
      <code class="leafygreen-ui-1l06pbn">
       db.currentOp()
      </code>
     </a>
     helper
method return the results in a single document, the total size of the
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/currentOp/#mongodb-dbcommand-dbcmd.currentOp">
      <code class="leafygreen-ui-1l06pbn">
       currentOp
      </code>
     </a>
     result set is subject to the maximum 16MB BSON
size limit for documents. The
     <code class="leafygreen-ui-1l06pbn">
      $currentOp
     </code>
     stage returns a
cursor over a stream of documents, each of which reports a single
operation. Each operation document is subject to the 16MB BSON limit,
but unlike the
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/currentOp/#mongodb-dbcommand-dbcmd.currentOp">
      <code class="leafygreen-ui-1l06pbn">
       currentOp
      </code>
     </a>
     command, there is no limit on
the overall size of the result set.
    </p>
    <p class="leafygreen-ui-1kp3ins">
     <code class="leafygreen-ui-1l06pbn">
      $currentOp
     </code>
     also enables you to perform arbitrary
transformations of the results as the documents pass through the
pipeline.
    </p>
   </dd>
  </dl>
  <section>
   <h3 class="contains-headerlink leafygreen-ui-15ajumo" weight="medium">
    Syntax
    <a class="headerlink leafygreen-ui-1kepx47" href="#syntax" title="Permalink to this heading">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="syntax">
     </div>
    </a>
   </h3>
   <script class="structured_data" type="application/ld+json">
    {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"{ $currentOp: { allUsers: &lt;boolean&gt;, idleConnections: &lt;boolean&gt;, idleCursors: &lt;boolean&gt;, idleSessions: &lt;boolean&gt;, localOps: &lt;boolean&gt; } }","programmingLanguage":"JavaScript"}
   </script>
   <div class="css-16lmvu9">
    <div class="leafygreen-ui-196mwvg">
     <div class="leafygreen-ui-1b1bvay">
      <pre class="leafygreen-ui-1q4bxgx" tabindex="0"><code class="lg-highlight-hljs-light javascript leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx">{ <span class="lg-highlight-attr">$currentOp</span>: <!-- -->{ <span class="lg-highlight-attr">allUsers</span>: &lt;<!-- -->boolean<!-- -->&gt;<!-- -->,<!-- --> <span class="lg-highlight-attr">idleConnections</span>: &lt;<!-- -->boolean<!-- -->&gt;<!-- -->,<!-- --> <span class="lg-highlight-attr">idleCursors</span>: &lt;<!-- -->boolean<!-- -->&gt;<!-- -->,<!-- --> <span class="lg-highlight-attr">idleSessions</span>: &lt;<!-- -->boolean<!-- -->&gt;<!-- -->,<!-- --> <span class="lg-highlight-attr">localOps</span>: &lt;<!-- -->boolean<!-- -->&gt; <!-- -->} }</td></tr></tbody></table></code></pre>
      <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
       <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
        <div class="leafygreen-ui-xhlipt">
         <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
          <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
          </path>
         </svg>
        </div>
       </button>
      </div>
     </div>
    </div>
   </div>
   <p class="leafygreen-ui-1kp3ins">
    <code class="leafygreen-ui-1l06pbn">
     $currentOp
    </code>
    takes an options document as its operand:
   </p>
   <div class="leafygreen-ui-skkc39" tabindex="0">
    <table class="leafygreen-ui-hr8lsv">
     <colgroup>
      <col style="width:25%"/>
      <col style="width:75%"/>
     </colgroup>
     <thead class="leafygreen-ui-a9ho40">
      <tr data-testid="leafygreen-ui-header-row">
       <th class="leafygreen-ui-1trtg6r" role="columnheader" scope="col">
        <div class="leafygreen-ui-ui0te9">
         <div>
          Option
         </div>
        </div>
       </th>
       <th class="leafygreen-ui-13uteka" role="columnheader" scope="col">
        <div class="leafygreen-ui-ui0te9">
         <div>
          Description
         </div>
        </div>
       </th>
      </tr>
     </thead>
     <tbody>
      <tr class="leafygreen-ui-15dvrnp">
       <td class="leafygreen-ui-1drjk7h">
        <div class="leafygreen-ui-1n4j8xf">
         <div>
          <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#std-label-currentOp-stage-allUsers" target="_self">
           <span>
            allUsers
           </span>
          </a>
         </div>
        </div>
       </td>
       <td class="leafygreen-ui-1drjk7h">
        <div class="leafygreen-ui-1n4j8xf">
         <div>
          <span class="leafygreen-ui-1qnjd6d" id="std-label-currentOp-stage-allUsers">
          </span>
          <p class="leafygreen-ui-1kp3ins">
           Boolean.
          </p>
          <ul class="leafygreen-ui-rioki0">
           <li class="leafygreen-ui-d7p7b6">
            <p class="leafygreen-ui-1kp3ins">
             If set to
             <code class="leafygreen-ui-1l06pbn">
              false
             </code>
             ,
             <code class="leafygreen-ui-1l06pbn">
              $currentOp
             </code>
             only reports
on operations/idle connections/idle cursors/idle sessions
belonging to the user who ran the command.
            </p>
           </li>
           <li class="leafygreen-ui-d7p7b6">
            <p class="leafygreen-ui-1kp3ins">
             If set to
             <code class="leafygreen-ui-1l06pbn">
              true
             </code>
             ,
             <code class="leafygreen-ui-1l06pbn">
              $currentOp
             </code>
             reports
operations belonging to all users.
            </p>
           </li>
          </ul>
          <p class="leafygreen-ui-1kp3ins">
           For standalone and replica sets that enforce access control,
           <code class="leafygreen-ui-1l06pbn">
            inprog
           </code>
           privilege is required if
           <code class="leafygreen-ui-1l06pbn">
            allUsers: true
           </code>
           .
          </p>
          <p class="leafygreen-ui-1kp3ins">
           For sharded clusters that enforce access control, the
           <code class="leafygreen-ui-1l06pbn">
            inprog
           </code>
           privilege is required to run
           <code class="leafygreen-ui-1l06pbn">
            $currentOp
           </code>
           .
          </p>
          <p class="leafygreen-ui-1kp3ins">
           Defaults to
           <code class="leafygreen-ui-1l06pbn">
            false
           </code>
           .
          </p>
         </div>
        </div>
       </td>
      </tr>
      <tr class="leafygreen-ui-15dvrnp">
       <td class="leafygreen-ui-1drjk7h">
        <div class="leafygreen-ui-1n4j8xf">
         <div>
          <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#std-label-currentOp-stage-idleConnections" target="_self">
           <span>
            idleConnections
           </span>
          </a>
         </div>
        </div>
       </td>
       <td class="leafygreen-ui-1drjk7h">
        <div class="leafygreen-ui-1n4j8xf">
         <div>
          <span class="leafygreen-ui-1qnjd6d" id="std-label-currentOp-stage-idleConnections">
          </span>
          <p class="leafygreen-ui-1kp3ins">
           Boolean. If set to
           <code class="leafygreen-ui-1l06pbn">
            false
           </code>
           ,
           <code class="leafygreen-ui-1l06pbn">
            $currentOp
           </code>
           only reports active
operations. If set to
           <code class="leafygreen-ui-1l06pbn">
            true
           </code>
           ,
           <code class="leafygreen-ui-1l06pbn">
            $currentOp
           </code>
           returns all
operations, including idle connections.
          </p>
          <p class="leafygreen-ui-1kp3ins">
           Defaults to
           <code class="leafygreen-ui-1l06pbn">
            false
           </code>
           .
          </p>
         </div>
        </div>
       </td>
      </tr>
      <tr class="leafygreen-ui-15dvrnp">
       <td class="leafygreen-ui-1drjk7h">
        <div class="leafygreen-ui-1n4j8xf">
         <div>
          <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#std-label-currentOp-stage-idleCursors" target="_self">
           <span>
            idleCursors
           </span>
          </a>
         </div>
        </div>
       </td>
       <td class="leafygreen-ui-1drjk7h">
        <div class="leafygreen-ui-1n4j8xf">
         <div>
          <span class="leafygreen-ui-1qnjd6d" id="std-label-currentOp-stage-idleCursors">
          </span>
          <p class="leafygreen-ui-1kp3ins">
           Boolean.
          </p>
          <p class="leafygreen-ui-1kp3ins">
           If set to
           <code class="leafygreen-ui-1l06pbn">
            true
           </code>
           ,
           <code class="leafygreen-ui-1l06pbn">
            $currentOp
           </code>
           reports on
cursors that are "idle"; i.e. open but not currently active
in a
           <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/getMore/#mongodb-dbcommand-dbcmd.getMore">
            <code class="leafygreen-ui-1l06pbn">
             getMore
            </code>
           </a>
           operation.
          </p>
          <p class="leafygreen-ui-1kp3ins">
           Information on idle cursors have the
           <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.type" target="_self">
            <span>
             <code class="leafygreen-ui-1l06pbn">
              type
             </code>
            </span>
           </a>
           set to
           <code class="leafygreen-ui-1l06pbn">
            "idleCursor"
           </code>
           .
          </p>
          <p class="leafygreen-ui-1kp3ins">
           Information on cursors currently active in a
           <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/getMore/#mongodb-dbcommand-dbcmd.getMore">
            <code class="leafygreen-ui-1l06pbn">
             getMore
            </code>
           </a>
           operation information have the
           <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.type" target="_self">
            <span>
             <code class="leafygreen-ui-1l06pbn">
              type
             </code>
            </span>
           </a>
           set to
           <code class="leafygreen-ui-1l06pbn">
            "op"
           </code>
           and
           <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.op" target="_self">
            <span>
             <code class="leafygreen-ui-1l06pbn">
              op
             </code>
            </span>
           </a>
           set to
           <code class="leafygreen-ui-1l06pbn">
            getmore
           </code>
           .
          </p>
          <p class="leafygreen-ui-1kp3ins">
           Defaults to
           <code class="leafygreen-ui-1l06pbn">
            false
           </code>
           .
          </p>
         </div>
        </div>
       </td>
      </tr>
      <tr class="leafygreen-ui-15dvrnp">
       <td class="leafygreen-ui-1drjk7h">
        <div class="leafygreen-ui-1n4j8xf">
         <div>
          <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#std-label-currentOp-stage-idleSessions" target="_self">
           <span>
            idleSessions
           </span>
          </a>
         </div>
        </div>
       </td>
       <td class="leafygreen-ui-1drjk7h">
        <div class="leafygreen-ui-1n4j8xf">
         <div>
          <span class="leafygreen-ui-1qnjd6d" id="std-label-currentOp-stage-idleSessions">
          </span>
          <p class="leafygreen-ui-1kp3ins">
           Boolean.
          </p>
          <ul class="leafygreen-ui-rioki0">
           <li class="leafygreen-ui-d7p7b6">
            <p class="leafygreen-ui-1kp3ins">
             If set to
             <code class="leafygreen-ui-1l06pbn">
              true
             </code>
             , in addition to active/dormant operations,
             <code class="leafygreen-ui-1l06pbn">
              $currentOp
             </code>
             reports on:
            </p>
            <ul class="leafygreen-ui-rioki0">
             <li class="leafygreen-ui-d7p7b6">
              <p class="leafygreen-ui-1kp3ins">
               Inactive sessions that are holding locks as part of a
transaction. Each inactive session appears as a separate
document in the
               <code class="leafygreen-ui-1l06pbn">
                $currentOp
               </code>
               stream.
              </p>
              <p class="leafygreen-ui-1kp3ins">
               The document for a session includes information on the session
ID in the
               <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.lsid" target="_self">
                <span>
                 <code class="leafygreen-ui-1l06pbn">
                  lsid
                 </code>
                </span>
               </a>
               field and the transaction
in the
               <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.transaction" target="_self">
                <span>
                 <code class="leafygreen-ui-1l06pbn">
                  transaction
                 </code>
                </span>
               </a>
               field.
              </p>
              <p class="leafygreen-ui-1kp3ins">
               Information on idle sessions have the
               <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.type" target="_self">
                <span>
                 <code class="leafygreen-ui-1l06pbn">
                  type
                 </code>
                </span>
               </a>
               set to
               <code class="leafygreen-ui-1l06pbn">
                "idleSession"
               </code>
               .
              </p>
             </li>
             <li class="leafygreen-ui-d7p7b6">
              <p class="leafygreen-ui-1kp3ins">
               <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.twoPhaseCommitCoordinator" target="_self">
                <span>
                 <code class="leafygreen-ui-1l06pbn">
                  $currentOp.twoPhaseCommitCoordinator
                 </code>
                </span>
               </a>
               in
               <code class="leafygreen-ui-1l06pbn">
                inactive
               </code>
               <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.twoPhaseCommitCoordinator.state" target="_self">
                <span>
                 <code class="leafygreen-ui-1l06pbn">
                  state
                 </code>
                </span>
               </a>
              </p>
             </li>
            </ul>
           </li>
           <li class="leafygreen-ui-d7p7b6">
            <p class="leafygreen-ui-1kp3ins">
             If set to
             <code class="leafygreen-ui-1l06pbn">
              false
             </code>
             ,
             <code class="leafygreen-ui-1l06pbn">
              $currentOp
             </code>
             doesn't report on:
            </p>
            <ul class="leafygreen-ui-rioki0">
             <li class="leafygreen-ui-d7p7b6">
              <p class="leafygreen-ui-1kp3ins">
               Inactive sessions
              </p>
             </li>
             <li class="leafygreen-ui-d7p7b6">
              <p class="leafygreen-ui-1kp3ins">
               <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.twoPhaseCommitCoordinator" target="_self">
                <span>
                 <code class="leafygreen-ui-1l06pbn">
                  $currentOp.twoPhaseCommitCoordinator
                 </code>
                </span>
               </a>
               information in
               <code class="leafygreen-ui-1l06pbn">
                inactive
               </code>
               <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.twoPhaseCommitCoordinator.state" target="_self">
                <span>
                 <code class="leafygreen-ui-1l06pbn">
                  state
                 </code>
                </span>
               </a>
              </p>
             </li>
            </ul>
           </li>
          </ul>
          <p class="leafygreen-ui-1kp3ins">
           Defaults to
           <code class="leafygreen-ui-1l06pbn">
            true
           </code>
           .
          </p>
         </div>
        </div>
       </td>
      </tr>
      <tr class="leafygreen-ui-15dvrnp">
       <td class="leafygreen-ui-1drjk7h">
        <div class="leafygreen-ui-1n4j8xf">
         <div>
          <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#std-label-currentOp-stage-localOps" target="_self">
           <span>
            localOps
           </span>
          </a>
         </div>
        </div>
       </td>
       <td class="leafygreen-ui-1drjk7h">
        <div class="leafygreen-ui-1n4j8xf">
         <div>
          <span class="leafygreen-ui-1qnjd6d" id="std-label-currentOp-stage-localOps">
          </span>
          <p class="leafygreen-ui-1kp3ins">
           Boolean. If set to
           <code class="leafygreen-ui-1l06pbn">
            true
           </code>
           for an aggregation running on
           <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
            <code class="leafygreen-ui-1l06pbn">
             mongos
            </code>
           </a>
           ,
           <code class="leafygreen-ui-1l06pbn">
            $currentOp
           </code>
           reports only
operations running locally on that
           <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
            <code class="leafygreen-ui-1l06pbn">
             mongos
            </code>
           </a>
           . If
           <code class="leafygreen-ui-1l06pbn">
            false
           </code>
           , then
           <code class="leafygreen-ui-1l06pbn">
            $currentOp
           </code>
           instead reports operations running
on the shards.
          </p>
          <p class="leafygreen-ui-1kp3ins">
           The
           <code class="leafygreen-ui-1l06pbn">
            localOps
           </code>
           parameter has no effect for
           <code class="leafygreen-ui-1l06pbn">
            $currentOp
           </code>
           aggregations running on
           <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
            <code class="leafygreen-ui-1l06pbn">
             mongod
            </code>
            .
           </a>
          </p>
          <p class="leafygreen-ui-1kp3ins">
           Defaults to
           <code class="leafygreen-ui-1l06pbn">
            false
           </code>
           .
          </p>
         </div>
        </div>
       </td>
      </tr>
      <tr class="leafygreen-ui-15dvrnp">
       <td class="leafygreen-ui-1drjk7h">
        <div class="leafygreen-ui-1n4j8xf">
         <div>
          <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#std-label-currentOp-stage-targetAllNodes" target="_self">
           <span>
            targetAllNodes
           </span>
          </a>
         </div>
        </div>
       </td>
       <td class="leafygreen-ui-1drjk7h">
        <div class="leafygreen-ui-1n4j8xf">
         <div>
          <span class="leafygreen-ui-1qnjd6d" id="std-label-currentOp-stage-targetAllNodes">
          </span>
          <p class="leafygreen-ui-1kp3ins">
           Boolean.  If set to
           <code class="leafygreen-ui-1l06pbn">
            true
           </code>
           ,
           <code class="leafygreen-ui-1l06pbn">
            $currentOp
           </code>
           outputs a document
for each data-bearing node for all shards.  If set to
           <code class="leafygreen-ui-1l06pbn">
            false
           </code>
           ,
           <code class="leafygreen-ui-1l06pbn">
            $curentOp
           </code>
           outputs a document for each shard.
          </p>
          <p class="leafygreen-ui-1kp3ins">
           For example, in a sharded cluster with three shards where each shard
is a replica set with three nodes:
          </p>
          <ul class="leafygreen-ui-rioki0">
           <li class="leafygreen-ui-d7p7b6">
            <p class="leafygreen-ui-1kp3ins">
             <code class="leafygreen-ui-1l06pbn">
              targetAllNodes=false
             </code>
             outputs three documents
            </p>
           </li>
           <li class="leafygreen-ui-d7p7b6">
            <p class="leafygreen-ui-1kp3ins">
             <code class="leafygreen-ui-1l06pbn">
              targetAllNodes=true
             </code>
             outputs nine documents
            </p>
           </li>
          </ul>
          <p class="leafygreen-ui-1kp3ins">
           Defaults to
           <code class="leafygreen-ui-1l06pbn">
            false
           </code>
           .
          </p>
          <div>
           <p>
            <em>
             New
             <!-- -->
             in version
             <!-- -->
             7.1
            </em>
            .
           </p>
          </div>
         </div>
        </div>
       </td>
      </tr>
     </tbody>
    </table>
   </div>
   <p class="leafygreen-ui-1kp3ins">
    Omitting any of the above parameters will cause $currentOp to use
that parameter's default value. Specify an empty document, as shown
below, to use the default values of all parameters.
   </p>
   <script class="structured_data" type="application/ld+json">
    {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"{ $currentOp: { } }","programmingLanguage":"JavaScript"}
   </script>
   <div class="css-16lmvu9">
    <div class="leafygreen-ui-196mwvg">
     <div class="leafygreen-ui-yzcs8i">
      <pre class="leafygreen-ui-1q4bxgx" tabindex="-1"><code class="lg-highlight-hljs-light javascript leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx">{ <span class="lg-highlight-attr">$currentOp</span>: <!-- -->{ <!-- -->} }</td></tr></tbody></table></code></pre>
      <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
       <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
        <div class="leafygreen-ui-xhlipt">
         <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
          <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
          </path>
         </svg>
        </div>
       </button>
      </div>
     </div>
    </div>
   </div>
  </section>
 </section>
 <section>
  <h2 class="contains-headerlink leafygreen-ui-19f71ei" weight="medium">
   Constraints
   <a class="headerlink leafygreen-ui-1kepx47" href="#constraints" title="Permalink to this heading">
    <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
     <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
     </path>
     <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
     </path>
    </svg>
    <div class="css-1btu0w3 evvkmar0" id="constraints">
    </div>
   </a>
  </h2>
  <section>
   <h3 class="contains-headerlink leafygreen-ui-15ajumo" weight="medium">
    Pipeline
    <a class="headerlink leafygreen-ui-1kepx47" href="#pipeline" title="Permalink to this heading">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="pipeline">
     </div>
    </a>
   </h3>
   <ul class="leafygreen-ui-rioki0">
    <li class="leafygreen-ui-d7p7b6">
     <p class="leafygreen-ui-1kp3ins">
      <code class="leafygreen-ui-1l06pbn">
       $currentOp
      </code>
      must be the first stage in the pipeline.
     </p>
    </li>
    <li class="leafygreen-ui-d7p7b6">
     <p class="leafygreen-ui-1kp3ins">
      Pipelines that start with
      <code class="leafygreen-ui-1l06pbn">
       $currentOp
      </code>
      can only be run on
the
      <code class="leafygreen-ui-1l06pbn">
       admin
      </code>
      database.
     </p>
    </li>
   </ul>
  </section>
  <section>
   <h3 class="contains-headerlink leafygreen-ui-15ajumo" weight="medium">
    Access Control
    <a class="headerlink leafygreen-ui-1kepx47" href="#access-control" title="Permalink to this heading">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="access-control">
     </div>
    </a>
   </h3>
   <ul class="leafygreen-ui-rioki0">
    <li class="leafygreen-ui-d7p7b6">
     <p class="leafygreen-ui-1kp3ins">
      For standalone and replica sets that enforce access control,
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-inprog">
       <code class="leafygreen-ui-1l06pbn">
        inprog
       </code>
      </a>
      privilege is required to run
      <code class="leafygreen-ui-1l06pbn">
       $currentOp
      </code>
      if
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#std-label-currentOp-stage-allUsers" target="_self">
       <span>
        allUsers: true
        <!-- -->
        .
       </span>
      </a>
     </p>
    </li>
    <li class="leafygreen-ui-d7p7b6">
     <p class="leafygreen-ui-1kp3ins">
      For sharded clusters that enforce access control, the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/privilege-actions/#mongodb-authaction-inprog">
       <code class="leafygreen-ui-1l06pbn">
        inprog
       </code>
      </a>
      privilege is required to run
      <code class="leafygreen-ui-1l06pbn">
       $currentOp
      </code>
      .
     </p>
    </li>
   </ul>
  </section>
  <section>
   <h3 class="contains-headerlink leafygreen-ui-15ajumo" weight="medium">
    Transactions
    <a class="headerlink leafygreen-ui-1kepx47" href="#transactions" title="Permalink to this heading">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="transactions">
     </div>
    </a>
   </h3>
   <ul class="leafygreen-ui-rioki0">
    <li class="leafygreen-ui-d7p7b6">
     <p class="leafygreen-ui-1kp3ins">
      <code class="leafygreen-ui-1l06pbn">
       $currentOp
      </code>
      is not allowed in
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/transactions/#std-label-transactions">
       transactions
       <!-- -->
       .
      </a>
     </p>
    </li>
   </ul>
  </section>
  <section>
   <h3 class="contains-headerlink leafygreen-ui-15ajumo" weight="medium">
    Redaction
    <a class="headerlink leafygreen-ui-1kepx47" href="#redaction" title="Permalink to this heading">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="redaction">
     </div>
    </a>
   </h3>
   <p class="leafygreen-ui-1kp3ins">
    When using
    <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/queryable-encryption/#std-label-qe-manual-feature-qe">
     Queryable Encryption
    </a>
    ,
    <code class="leafygreen-ui-1l06pbn">
     $currentOp
    </code>
    output redacts certain information:
   </p>
   <ul class="leafygreen-ui-rioki0">
    <li class="leafygreen-ui-d7p7b6">
     <p class="leafygreen-ui-1kp3ins">
      The output omits all fields after
      <code class="leafygreen-ui-1l06pbn">
       "command"
      </code>
      .
     </p>
    </li>
    <li class="leafygreen-ui-d7p7b6">
     <p class="leafygreen-ui-1kp3ins">
      The output redacts
      <code class="leafygreen-ui-1l06pbn">
       "command"
      </code>
      to include only the first element,
      <code class="leafygreen-ui-1l06pbn">
       $comment
      </code>
      , and
      <code class="leafygreen-ui-1l06pbn">
       $db
      </code>
      .
     </p>
    </li>
   </ul>
  </section>
 </section>
 <section>
  <h2 class="contains-headerlink leafygreen-ui-19f71ei" weight="medium">
   Examples
   <a class="headerlink leafygreen-ui-1kepx47" href="#examples" title="Permalink to this heading">
    <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
     <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
     </path>
     <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
     </path>
    </svg>
    <div class="css-1btu0w3 evvkmar0" id="examples">
    </div>
   </a>
  </h2>
  <p class="leafygreen-ui-1kp3ins">
   The following examples show how to use the
   <code class="leafygreen-ui-1l06pbn">
    $currentOp
   </code>
   aggregation
stage.
  </p>
  <section>
   <h3 class="contains-headerlink leafygreen-ui-15ajumo" weight="medium">
    Inactive Sessions
    <a class="headerlink leafygreen-ui-1kepx47" href="#inactive-sessions" title="Permalink to this heading">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="inactive-sessions">
     </div>
    </a>
   </h3>
   <p class="leafygreen-ui-1kp3ins">
    This example returns information on inactive sessions that are
holding locks as part of a transaction. Specifically:
   </p>
   <ul class="leafygreen-ui-rioki0">
    <li class="leafygreen-ui-d7p7b6">
     <p class="leafygreen-ui-1kp3ins">
      The first stage returns documents for all active operations as well
as inactive sessions that are holding locks as part of a transaction.
     </p>
    </li>
    <li class="leafygreen-ui-d7p7b6">
     <p class="leafygreen-ui-1kp3ins">
      The second stage filters for documents related to inactive
sessions that are holding locks as part of a transaction.
     </p>
    </li>
   </ul>
   <script class="structured_data" type="application/ld+json">
    {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"db.getSiblingDB(\"admin\").aggregate( [\n   { $currentOp : { allUsers: true, idleSessions: true } },\n   { $match : { active: false, transaction : { $exists: true } } }\n] )","programmingLanguage":"JavaScript"}
   </script>
   <div class="css-16lmvu9">
    <div class="leafygreen-ui-196mwvg">
     <div class="leafygreen-ui-1b1bvay">
      <pre class="leafygreen-ui-11itue3" tabindex="0"><code class="lg-highlight-hljs-light javascript leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx">db.<span class="lg-highlight-title lg-highlight-function">getSiblingDB</span>(<span class="lg-highlight-string">"admin"</span>).<span class="lg-highlight-title lg-highlight-function">aggregate</span>( <!-- -->[</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <!-- -->{ <!-- -->$currentOp<!-- --> <!-- -->: <!-- -->{ <span class="lg-highlight-attr">allUsers</span>: <span class="lg-highlight-literal">true</span>, <span class="lg-highlight-attr">idleSessions</span>: <span class="lg-highlight-literal">true</span> } }<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <!-- -->{ <!-- -->$match<!-- --> <!-- -->: <!-- -->{ <span class="lg-highlight-attr">active</span>: <span class="lg-highlight-literal">false</span>, <!-- -->transaction <!-- -->: <!-- -->{ <span class="lg-highlight-attr">$exists</span>: <span class="lg-highlight-literal">true</span> } } }</td></tr><tr class=""><td class="leafygreen-ui-7razhx">] )</td></tr></tbody></table></code></pre>
      <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
       <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
        <div class="leafygreen-ui-xhlipt">
         <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
          <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
          </path>
         </svg>
        </div>
       </button>
      </div>
     </div>
    </div>
   </div>
   <p class="leafygreen-ui-1kp3ins">
    You can use
    <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.type" target="_self">
     <span>
      <code class="leafygreen-ui-1l06pbn">
       $currentOp.type
      </code>
     </span>
    </a>
    to specify
an equivalent filter:
   </p>
   <script class="structured_data" type="application/ld+json">
    {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"db.getSiblingDB(\"admin\").aggregate( [\n   { $currentOp : { allUsers: true, idleSessions: true } },\n   { $match : { type: \"idleSession\" } }\n] )","programmingLanguage":"JavaScript"}
   </script>
   <div class="css-16lmvu9">
    <div class="leafygreen-ui-196mwvg">
     <div class="leafygreen-ui-1b1bvay">
      <pre class="leafygreen-ui-11itue3" tabindex="0"><code class="lg-highlight-hljs-light javascript leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx">db.<span class="lg-highlight-title lg-highlight-function">getSiblingDB</span>(<span class="lg-highlight-string">"admin"</span>).<span class="lg-highlight-title lg-highlight-function">aggregate</span>( <!-- -->[</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <!-- -->{ <!-- -->$currentOp<!-- --> <!-- -->: <!-- -->{ <span class="lg-highlight-attr">allUsers</span>: <span class="lg-highlight-literal">true</span>, <span class="lg-highlight-attr">idleSessions</span>: <span class="lg-highlight-literal">true</span> } }<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <!-- -->{ <!-- -->$match<!-- --> <!-- -->: <!-- -->{ <span class="lg-highlight-attr">type</span>: <span class="lg-highlight-string">"idleSession"</span> } }</td></tr><tr class=""><td class="leafygreen-ui-7razhx">] )</td></tr></tbody></table></code></pre>
      <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
       <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
        <div class="leafygreen-ui-xhlipt">
         <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
          <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
          </path>
         </svg>
        </div>
       </button>
      </div>
     </div>
    </div>
   </div>
   <div class="leafygreen-ui-13vw3ie" role="note">
    <h2 class="leafygreen-ui-1fn4p2b">
     Tip
    </h2>
    <div class="leafygreen-ui-9mycqc">
     <p class="leafygreen-ui-1kp3ins">
      For transactions on a sharded cluster, include
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#std-label-currentOp-stage-localOps" target="_self">
       <span>
        localOps:true
       </span>
      </a>
      in the previous
examples for a composite view of the transactions.
     </p>
    </div>
   </div>
   <p class="leafygreen-ui-1kp3ins">
    Both operations return documents of the form:
   </p>
   <div aria-hidden="true">
   </div>
   <div class="leafygreen-ui-1b75luy" data-lgid="lg-tabs">
    <div class="leafygreen-ui-jp7pox" id="tabs-14">
     <div aria-label="Tabs to describe usage of currentOp-mongos/currentOp-mongos-localops/currentOp-rs" aria-orientation="horizontal" class="leafygreen-ui-m8p1vb lg-ui-tab-list-0000" data-lgid="lg-tabs-tab_list" role="tablist">
      <button aria-controls="_vugnio443" aria-selected="true" class="leafygreen-ui-1l773z1" data-text="" id="_chdw5j9qv" name="" role="tab" tabindex="0">
       <div class="leafygreen-ui-1nxuzmg">
        Replica Set
       </div>
      </button>
      <button aria-controls="_iip2y4z1m" aria-selected="false" class="leafygreen-ui-1ogxb8f" data-text="" id="_t1ku0eiap" name="" role="tab" tabindex="-1">
       <div class="leafygreen-ui-1nxuzmg">
        Sharded Cluster (localOps: true)
       </div>
      </button>
      <button aria-controls="_kkznilzva" aria-selected="false" class="leafygreen-ui-1ogxb8f" data-text="" id="_hqb07llvr" name="" role="tab" tabindex="-1">
       <div class="leafygreen-ui-1nxuzmg">
        Sharded Cluster
       </div>
      </button>
     </div>
     <div class="leafygreen-ui-ov1ktg">
      <div class="leafygreen-ui-1sg2lsz">
      </div>
     </div>
    </div>
    <div class="lg-ui-tab-panels-0000" data-lgid="lg-tabs-tab_panels">
     <div>
      <div aria-labelledby="_gatf1y05c" class="" id="_0qg13a9de" role="tabpanel">
       <div class="leafygreen-ui-1kdmo88">
        <p class="leafygreen-ui-1kp3ins">
         When run on a
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
          <code class="leafygreen-ui-1l06pbn">
           mongod
          </code>
         </a>
         that is part of a replica set:
        </p>
        <script class="structured_data" type="application/ld+json">
         {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"{\n   \"type\" : \"idleSession\",\n   \"host\" : \"example.mongodb.com:27017\",\n   \"desc\" : \"inactive transaction\",\n   \"client\" : \"198.51.100.1:50428\",\n   \"connectionId\" : NumberLong(32),\n   \"appName\" : \"\",\n   \"clientMetadata\" : {\n      \"driver\" : {\n         \"name\" : \"PyMongo\",\n         \"version\" : \"3.9.0\"\n      },\n      \"os\" : {\n         \"type\" : \"Darwin\",\n         \"name\" : \"Darwin\",\n         \"architecture\" : \"x86_64\",\n         \"version\" : \"10.14.5\"\n      },\n      \"platform\" : \"CPython 3.7.1.final.0\"\n   },\n   \"lsid\" : {\n      \"id\" : UUID(\"ff21e1a9-a130-4fe0-942f-9e6b6c67ea3c\"),\n      \"uid\" : BinData(0,\"3pxqkATNUYKV/soT7qqKE0zC0BFb0pBz1pk4xXcSHsI=\")\n   },\n   \"transaction\" : {\n      \"parameters\" : {\n         \"txnNumber\" : NumberLong(4),\n         \"autocommit\" : false,\n         \"readConcern\" : {\n            \"level\" : \"snapshot\",\n            \"afterClusterTime\" : Timestamp(1563892246, 1)\n         }\n      },\n      \"readTimestamp\" : Timestamp(0, 0),\n      \"startWallClockTime\" : \"2019-07-23T10:30:49.461-04:00\",\n      \"timeOpenMicros\" : NumberLong(1913590),\n      \"timeActiveMicros\" : NumberLong(55),\n      \"timeInactiveMicros\" : NumberLong(1913535),\n      \"expiryTime\" : \"2019-07-23T10:31:49.461-04:00\"\n   },\n   \"waitingForLock\" : false,\n   \"active\" : false,\n   \"locks\" : {\n      \"ReplicationStateTransition\" : \"w\",\n      \"Global\" : \"w\",\n      \"Database\" : \"w\",\n      \"Collection\" : \"w\"\n   },\n   \"lockStats\" : {\n      \"ReplicationStateTransition\" : {\n         \"acquireCount\" : {\n            \"w\" : NumberLong(5)\n         }\n      },\n      \"Global\" : {\n         \"acquireCount\" : {\n            \"r\" : NumberLong(3),\n            \"w\" : NumberLong(1)\n         }\n      },\n      \"Database\" : {\n         \"acquireCount\" : {\n            \"r\" : NumberLong(2),\n            \"w\" : NumberLong(1)\n         }\n      },\n      \"Collection\" : {\n         \"acquireCount\" : {\n            \"w\" : NumberLong(1)\n         }\n      },\n      \"Mutex\" : {\n         \"acquireCount\" : {\n            \"r\" : NumberLong(3)\n         }\n      },\n      \"oplog\" : {\n         \"acquireCount\" : {\n            \"r\" : NumberLong(2)\n         }\n      }\n   },\n   \"waitingForFlowControl\" : false,\n   \"flowControlStats\" : {},\n}","programmingLanguage":"JavaScript"}
        </script>
        <div class="css-16lmvu9">
         <div class="leafygreen-ui-196mwvg">
          <div class="leafygreen-ui-yzcs8i">
           <pre class="leafygreen-ui-11itue3" tabindex="-1"><code class="lg-highlight-hljs-light javascript leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx">{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">"type"</span> <!-- -->: <span class="lg-highlight-string">"idleSession"</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">"host"</span> <!-- -->: <span class="lg-highlight-string">"example.mongodb.com:27017"</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">"desc"</span> <!-- -->: <span class="lg-highlight-string">"inactive transaction"</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">"client"</span> <!-- -->: <span class="lg-highlight-string">"198.51.100.1:50428"</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">"connectionId"</span> <!-- -->: <span class="lg-highlight-title lg-highlight-class">NumberLong</span>(<span class="lg-highlight-number">32</span>)<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">"appName"</span> <!-- -->: <span class="lg-highlight-string">""</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">"clientMetadata"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"driver"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-string">"name"</span> <!-- -->: <span class="lg-highlight-string">"PyMongo"</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-string">"version"</span> <!-- -->: <span class="lg-highlight-string">"3.9.0"</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      }<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"os"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-string">"type"</span> <!-- -->: <span class="lg-highlight-string">"Darwin"</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-string">"name"</span> <!-- -->: <span class="lg-highlight-string">"Darwin"</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-string">"architecture"</span> <!-- -->: <span class="lg-highlight-string">"x86_64"</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-string">"version"</span> <!-- -->: <span class="lg-highlight-string">"10.14.5"</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      }<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"platform"</span> <!-- -->: <span class="lg-highlight-string">"CPython 3.7.1.final.0"</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   }<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">"lsid"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"id"</span> <!-- -->: <span class="lg-highlight-title lg-highlight-function">UUID</span>(<span class="lg-highlight-string">"ff21e1a9-a130-4fe0-942f-9e6b6c67ea3c"</span>)<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"uid"</span> <!-- -->: <span class="lg-highlight-title lg-highlight-class">BinData</span>(<span class="lg-highlight-number">0</span>,<span class="lg-highlight-string">"3pxqkATNUYKV/soT7qqKE0zC0BFb0pBz1pk4xXcSHsI="</span>)</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   }<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">"transaction"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"parameters"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-string">"txnNumber"</span> <!-- -->: <span class="lg-highlight-title lg-highlight-class">NumberLong</span>(<span class="lg-highlight-number">4</span>)<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-string">"autocommit"</span> <!-- -->: <span class="lg-highlight-literal">false</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-string">"readConcern"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">            <span class="lg-highlight-string">"level"</span> <!-- -->: <span class="lg-highlight-string">"snapshot"</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">            <span class="lg-highlight-string">"afterClusterTime"</span> <!-- -->: <span class="lg-highlight-title lg-highlight-class">Timestamp</span>(<span class="lg-highlight-number">1563892246</span>, <span class="lg-highlight-number">1</span>)</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         }</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      }<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"readTimestamp"</span> <!-- -->: <span class="lg-highlight-title lg-highlight-class">Timestamp</span>(<span class="lg-highlight-number">0</span>, <span class="lg-highlight-number">0</span>)<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"startWallClockTime"</span> <!-- -->: <span class="lg-highlight-string">"2019-07-23T10:30:49.461-04:00"</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"timeOpenMicros"</span> <!-- -->: <span class="lg-highlight-title lg-highlight-class">NumberLong</span>(<span class="lg-highlight-number">1913590</span>)<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"timeActiveMicros"</span> <!-- -->: <span class="lg-highlight-title lg-highlight-class">NumberLong</span>(<span class="lg-highlight-number">55</span>)<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"timeInactiveMicros"</span> <!-- -->: <span class="lg-highlight-title lg-highlight-class">NumberLong</span>(<span class="lg-highlight-number">1913535</span>)<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"expiryTime"</span> <!-- -->: <span class="lg-highlight-string">"2019-07-23T10:31:49.461-04:00"</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   }<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">"waitingForLock"</span> <!-- -->: <span class="lg-highlight-literal">false</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">"active"</span> <!-- -->: <span class="lg-highlight-literal">false</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">"locks"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"ReplicationStateTransition"</span> <!-- -->: <span class="lg-highlight-string">"w"</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"Global"</span> <!-- -->: <span class="lg-highlight-string">"w"</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"Database"</span> <!-- -->: <span class="lg-highlight-string">"w"</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"Collection"</span> <!-- -->: <span class="lg-highlight-string">"w"</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   }<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">"lockStats"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"ReplicationStateTransition"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-string">"acquireCount"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">            <span class="lg-highlight-string">"w"</span> <!-- -->: <span class="lg-highlight-title lg-highlight-class">NumberLong</span>(<span class="lg-highlight-number">5</span>)</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         }</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      }<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"Global"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-string">"acquireCount"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">            <span class="lg-highlight-string">"r"</span> <!-- -->: <span class="lg-highlight-title lg-highlight-class">NumberLong</span>(<span class="lg-highlight-number">3</span>)<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">            <span class="lg-highlight-string">"w"</span> <!-- -->: <span class="lg-highlight-title lg-highlight-class">NumberLong</span>(<span class="lg-highlight-number">1</span>)</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         }</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      }<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"Database"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-string">"acquireCount"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">            <span class="lg-highlight-string">"r"</span> <!-- -->: <span class="lg-highlight-title lg-highlight-class">NumberLong</span>(<span class="lg-highlight-number">2</span>)<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">            <span class="lg-highlight-string">"w"</span> <!-- -->: <span class="lg-highlight-title lg-highlight-class">NumberLong</span>(<span class="lg-highlight-number">1</span>)</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         }</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      }<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"Collection"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-string">"acquireCount"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">            <span class="lg-highlight-string">"w"</span> <!-- -->: <span class="lg-highlight-title lg-highlight-class">NumberLong</span>(<span class="lg-highlight-number">1</span>)</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         }</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      }<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"Mutex"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-string">"acquireCount"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">            <span class="lg-highlight-string">"r"</span> <!-- -->: <span class="lg-highlight-title lg-highlight-class">NumberLong</span>(<span class="lg-highlight-number">3</span>)</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         }</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      }<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"oplog"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-string">"acquireCount"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">            <span class="lg-highlight-string">"r"</span> <!-- -->: <span class="lg-highlight-title lg-highlight-class">NumberLong</span>(<span class="lg-highlight-number">2</span>)</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         }</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      }</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   }<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">"waitingForFlowControl"</span> <!-- -->: <span class="lg-highlight-literal">false</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">"flowControlStats"</span> <!-- -->: <!-- -->{<!-- -->}<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">}</td></tr></tbody></table></code></pre>
           <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
            <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
             <div class="leafygreen-ui-xhlipt">
              <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
               <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
               </path>
              </svg>
             </div>
            </button>
           </div>
          </div>
         </div>
        </div>
       </div>
      </div>
     </div>
     <div>
      <div aria-labelledby="_3lhy5v7dv" class="leafygreen-ui-38lglc" id="_9fhn65iba" role="tabpanel">
       <div class="leafygreen-ui-1kdmo88">
        <p class="leafygreen-ui-1kp3ins">
         Running
         <code class="leafygreen-ui-1l06pbn">
          $currentOp
         </code>
         with
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#std-label-currentOp-stage-localOps" target="_self">
          <span>
           localOps:true
          </span>
         </a>
         provides a
composite view (rather than per shard information) of the
in-progress transactions run on that
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
          <code class="leafygreen-ui-1l06pbn">
           mongos
          </code>
          .
         </a>
        </p>
        <script class="structured_data" type="application/ld+json">
         {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"db.getSiblingDB(\"admin\").aggregate( [\n   { $currentOp : { allUsers: true, idleSessions: true, localOps: true } },\n   { $match : { type: \"idleSession\" } }\n] );\n\n// or\n\ndb.getSiblingDB(\"admin\").aggregate( [\n   { $currentOp : { allUsers: true, idleSessions: true, localOps: true } },\n   { $match : { active: false, transaction : { $exists: true } } }\n] )","programmingLanguage":"JavaScript"}
        </script>
        <div class="css-16lmvu9">
         <div class="leafygreen-ui-196mwvg">
          <div class="leafygreen-ui-yzcs8i">
           <pre class="leafygreen-ui-11itue3" tabindex="-1"><code class="lg-highlight-hljs-light javascript leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx">db.<span class="lg-highlight-title lg-highlight-function">getSiblingDB</span>(<span class="lg-highlight-string">"admin"</span>).<span class="lg-highlight-title lg-highlight-function">aggregate</span>( <!-- -->[</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <!-- -->{ <!-- -->$currentOp<!-- --> <!-- -->: <!-- -->{ <span class="lg-highlight-attr">allUsers</span>: <span class="lg-highlight-literal">true</span>, <span class="lg-highlight-attr">idleSessions</span>: <span class="lg-highlight-literal">true</span>, <span class="lg-highlight-attr">localOps</span>: <span class="lg-highlight-literal">true</span> } }<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <!-- -->{ <!-- -->$match<!-- --> <!-- -->: <!-- -->{ <span class="lg-highlight-attr">type</span>: <span class="lg-highlight-string">"idleSession"</span> } }</td></tr><tr class=""><td class="leafygreen-ui-7razhx">] )<!-- -->;</td></tr><tr class=""><td class="leafygreen-ui-7razhx"><div class="leafygreen-ui-ihxujy"></div></td></tr><tr class=""><td class="leafygreen-ui-7razhx"><span class="lg-highlight-comment">// or</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx"><div class="leafygreen-ui-ihxujy"></div></td></tr><tr class=""><td class="leafygreen-ui-7razhx">db.<span class="lg-highlight-title lg-highlight-function">getSiblingDB</span>(<span class="lg-highlight-string">"admin"</span>).<span class="lg-highlight-title lg-highlight-function">aggregate</span>( <!-- -->[</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <!-- -->{ <!-- -->$currentOp<!-- --> <!-- -->: <!-- -->{ <span class="lg-highlight-attr">allUsers</span>: <span class="lg-highlight-literal">true</span>, <span class="lg-highlight-attr">idleSessions</span>: <span class="lg-highlight-literal">true</span>, <span class="lg-highlight-attr">localOps</span>: <span class="lg-highlight-literal">true</span> } }<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <!-- -->{ <!-- -->$match<!-- --> <!-- -->: <!-- -->{ <span class="lg-highlight-attr">active</span>: <span class="lg-highlight-literal">false</span>, <!-- -->transaction <!-- -->: <!-- -->{ <span class="lg-highlight-attr">$exists</span>: <span class="lg-highlight-literal">true</span> } } }</td></tr><tr class=""><td class="leafygreen-ui-7razhx">] )</td></tr></tbody></table></code></pre>
           <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
            <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
             <div class="leafygreen-ui-xhlipt">
              <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
               <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
               </path>
              </svg>
             </div>
            </button>
           </div>
          </div>
         </div>
        </div>
        <script class="structured_data" type="application/ld+json">
         {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"{\n   \"type\" : \"idleSession\",\n   \"host\" : \"example.mongodb.com:27017\",\n   \"desc\" : \"inactive transaction\",\n   \"client\" : \"198.51.100.1:49618\",\n   \"connectionId\" : NumberLong(48),\n   \"appName\" : \"\",\n   \"clientMetadata\" : {\n      \"driver\" : {\n         \"name\" : \"PyMongo\",\n         \"version\" : \"3.9.0\"\n      },\n      \"os\" : {\n         \"type\" : \"Darwin\",\n         \"name\" : \"Darwin\",\n         \"architecture\" : \"x86_64\",\n         \"version\" : \"10.14.6\"\n      },\n      \"platform\" : \"CPython 3.7.1.final.0\",\n      \"mongos\" : {\n         \"host\" : \"example.mongodb.com:27017\",\n         \"client\" : \"198.51.100.1:53268\",\n         \"version\" : \"4.2.1\"\n      }\n   },\n   \"lsid\" : {\n      \"id\" : UUID(\"2c9ce111-133e-45b7-a00f-a7871005cae1\"),\n      \"uid\" : BinData(0,\"3pxqkATNUYKV/soT7qqKE0zC0BFb0pBz1pk4xXcSHsI=\")\n   },\n   \"active\" : false,\n   \"transaction\" : {\n      \"parameters\" : {\n         \"txnNumber\" : NumberLong(2),\n         \"autocommit\" : false,\n         \"readConcern\" : {\n            \"level\" : \"snapshot\",\n            \"afterClusterTime\" : Timestamp(1571869019, 2)\n         }\n      },\n      \"globalReadTimestamp\" : Timestamp(1571869019, 2),\n      \"startWallClockTime\" : \"2019-10-23T18:16:59.341-04:00\",\n      \"timeOpenMicros\" : NumberLong(169244639),\n      \"timeActiveMicros\" : NumberLong(535),\n      \"timeInactiveMicros\" : NumberLong(169244104),\n      \"numParticipants\" : 2,\n      \"participants\" : [\n         {\n            \"name\" : \"shardB\",\n            \"coordinator\" : true,\n            \"readOnly\" : false\n         },\n         {\n            \"name\" : \"shardA\",\n            \"coordinator\" : false,\n            \"readOnly\" : false\n         }\n      ],\n      \"numReadOnlyParticipants\" : 0,\n      \"numNonReadOnlyParticipants\" : 2\n   }\n}","programmingLanguage":"JavaScript"}
        </script>
        <div class="css-16lmvu9">
         <div class="leafygreen-ui-196mwvg">
          <div class="leafygreen-ui-yzcs8i">
           <pre class="leafygreen-ui-11itue3" tabindex="-1"><code class="lg-highlight-hljs-light javascript leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx">{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">"type"</span> <!-- -->: <span class="lg-highlight-string">"idleSession"</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">"host"</span> <!-- -->: <span class="lg-highlight-string">"example.mongodb.com:27017"</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">"desc"</span> <!-- -->: <span class="lg-highlight-string">"inactive transaction"</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">"client"</span> <!-- -->: <span class="lg-highlight-string">"198.51.100.1:49618"</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">"connectionId"</span> <!-- -->: <span class="lg-highlight-title lg-highlight-class">NumberLong</span>(<span class="lg-highlight-number">48</span>)<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">"appName"</span> <!-- -->: <span class="lg-highlight-string">""</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">"clientMetadata"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"driver"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-string">"name"</span> <!-- -->: <span class="lg-highlight-string">"PyMongo"</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-string">"version"</span> <!-- -->: <span class="lg-highlight-string">"3.9.0"</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      }<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"os"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-string">"type"</span> <!-- -->: <span class="lg-highlight-string">"Darwin"</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-string">"name"</span> <!-- -->: <span class="lg-highlight-string">"Darwin"</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-string">"architecture"</span> <!-- -->: <span class="lg-highlight-string">"x86_64"</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-string">"version"</span> <!-- -->: <span class="lg-highlight-string">"10.14.6"</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      }<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"platform"</span> <!-- -->: <span class="lg-highlight-string">"CPython 3.7.1.final.0"</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"mongos"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-string">"host"</span> <!-- -->: <span class="lg-highlight-string">"example.mongodb.com:27017"</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-string">"client"</span> <!-- -->: <span class="lg-highlight-string">"198.51.100.1:53268"</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-string">"version"</span> <!-- -->: <span class="lg-highlight-string">"4.2.1"</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      }</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   }<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">"lsid"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"id"</span> <!-- -->: <span class="lg-highlight-title lg-highlight-function">UUID</span>(<span class="lg-highlight-string">"2c9ce111-133e-45b7-a00f-a7871005cae1"</span>)<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"uid"</span> <!-- -->: <span class="lg-highlight-title lg-highlight-class">BinData</span>(<span class="lg-highlight-number">0</span>,<span class="lg-highlight-string">"3pxqkATNUYKV/soT7qqKE0zC0BFb0pBz1pk4xXcSHsI="</span>)</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   }<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">"active"</span> <!-- -->: <span class="lg-highlight-literal">false</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">"transaction"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"parameters"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-string">"txnNumber"</span> <!-- -->: <span class="lg-highlight-title lg-highlight-class">NumberLong</span>(<span class="lg-highlight-number">2</span>)<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-string">"autocommit"</span> <!-- -->: <span class="lg-highlight-literal">false</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-string">"readConcern"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">            <span class="lg-highlight-string">"level"</span> <!-- -->: <span class="lg-highlight-string">"snapshot"</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">            <span class="lg-highlight-string">"afterClusterTime"</span> <!-- -->: <span class="lg-highlight-title lg-highlight-class">Timestamp</span>(<span class="lg-highlight-number">1571869019</span>, <span class="lg-highlight-number">2</span>)</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         }</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      }<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"globalReadTimestamp"</span> <!-- -->: <span class="lg-highlight-title lg-highlight-class">Timestamp</span>(<span class="lg-highlight-number">1571869019</span>, <span class="lg-highlight-number">2</span>)<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"startWallClockTime"</span> <!-- -->: <span class="lg-highlight-string">"2019-10-23T18:16:59.341-04:00"</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"timeOpenMicros"</span> <!-- -->: <span class="lg-highlight-title lg-highlight-class">NumberLong</span>(<span class="lg-highlight-number">169244639</span>)<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"timeActiveMicros"</span> <!-- -->: <span class="lg-highlight-title lg-highlight-class">NumberLong</span>(<span class="lg-highlight-number">535</span>)<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"timeInactiveMicros"</span> <!-- -->: <span class="lg-highlight-title lg-highlight-class">NumberLong</span>(<span class="lg-highlight-number">169244104</span>)<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"numParticipants"</span> <!-- -->: <span class="lg-highlight-number">2</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"participants"</span> <!-- -->: <!-- -->[</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">            <span class="lg-highlight-string">"name"</span> <!-- -->: <span class="lg-highlight-string">"shardB"</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">            <span class="lg-highlight-string">"coordinator"</span> <!-- -->: <span class="lg-highlight-literal">true</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">            <span class="lg-highlight-string">"readOnly"</span> <!-- -->: <span class="lg-highlight-literal">false</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">         }<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">            <span class="lg-highlight-string">"name"</span> <!-- -->: <span class="lg-highlight-string">"shardA"</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">            <span class="lg-highlight-string">"coordinator"</span> <!-- -->: <span class="lg-highlight-literal">false</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">            <span class="lg-highlight-string">"readOnly"</span> <!-- -->: <span class="lg-highlight-literal">false</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">         }</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      ]<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"numReadOnlyParticipants"</span> <!-- -->: <span class="lg-highlight-number">0</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"numNonReadOnlyParticipants"</span> <!-- -->: <span class="lg-highlight-number">2</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   }</td></tr><tr class=""><td class="leafygreen-ui-7razhx">}</td></tr></tbody></table></code></pre>
           <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
            <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
             <div class="leafygreen-ui-xhlipt">
              <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
               <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
               </path>
              </svg>
             </div>
            </button>
           </div>
          </div>
         </div>
        </div>
        <p class="leafygreen-ui-1kp3ins">
         When run without
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#std-label-currentOp-stage-localOps" target="_self">
          <span>
           localOps:true
          </span>
         </a>
         on
the
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
          <code class="leafygreen-ui-1l06pbn">
           mongos
          </code>
         </a>
         , the transaction information is per
shard.
        </p>
       </div>
      </div>
     </div>
     <div>
      <div aria-labelledby="_h4gk41qdk" class="leafygreen-ui-38lglc" id="_g0ey7fbpk" role="tabpanel">
       <div class="leafygreen-ui-1kdmo88">
        <p class="leafygreen-ui-1kp3ins">
         When run on a
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
          <code class="leafygreen-ui-1l06pbn">
           mongos
          </code>
         </a>
         without
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#std-label-currentOp-stage-localOps" target="_self">
          <span>
           localOps:true
          </span>
         </a>
         , the transaction information is per
shard.
        </p>
        <script class="structured_data" type="application/ld+json">
         {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"{\n   \"shard\" : \"shardB\",\n   \"type\" : \"idleSession\",\n   \"host\" : \"shardB.mongodb.com:27018\",\n   \"desc\" : \"inactive transaction\",\n   \"client_s\" : \"198.51.100.1:53961\",\n   \"connectionId\" : NumberLong(63),\n   \"appName\" : \"\",\n   \"clientMetadata\" : {\n      \"driver\" : {\n         \"name\" : \"PyMongo\",\n         \"version\" : \"3.9.0\"\n      },\n      \"os\" : {\n         \"type\" : \"Darwin\",\n         \"name\" : \"Darwin\",\n         \"architecture\" : \"x86_64\",\n         \"version\" : \"10.14.6\"\n      },\n      \"platform\" : \"CPython 3.7.1.final.0\",\n      \"mongos\" : {\n         \"host\" : \"example.mongodb.com:27017\",\n         \"client\" : \"198.51.100.1:53976\",\n         \"version\" : \"4.2.0\"\n      }\n   },\n   \"lsid\" : {\n      \"id\" : UUID(\"720d403c-8daf-40bb-b61e-329e20b0493b\"),\n      \"uid\" : BinData(0,\"3pxqkATNUYKV/soT7qqKE0zC0BFb0pBz1pk4xXcSHsI=\")\n   },\n   \"transaction\" : {\n      \"parameters\" : {\n         \"txnNumber\" : NumberLong(1),\n         \"autocommit\" : false,\n         \"readConcern\" : {\n            \"level\" : \"snapshot\"\n         }\n      },\n      \"readTimestamp\" : Timestamp(0, 0),\n      \"startWallClockTime\" : \"2019-10-21T18:31:12.192-04:00\",\n      \"timeOpenMicros\" : NumberLong(24137008),\n      \"timeActiveMicros\" : NumberLong(52),\n      \"timeInactiveMicros\" : NumberLong(24136956),\n      \"expiryTime\" : \"2019-10-21T18:32:12.192-04:00\"\n   },\n   \"waitingForLock\" : false,\n   \"active\" : false,\n   \"locks\" : {\n      \"ReplicationStateTransition\" : \"w\",\n      \"Global\" : \"w\",\n      \"Database\" : \"w\",\n      \"Collection\" : \"w\"\n   },\n   \"lockStats\" : {\n      \"ReplicationStateTransition\" : {\n         \"acquireCount\" : {\n            \"w\" : NumberLong(3)\n         }\n      },\n      \"Global\" : {\n         \"acquireCount\" : {\n            \"r\" : NumberLong(1),\n            \"w\" : NumberLong(1)\n         }\n      },\n      \"Database\" : {\n         \"acquireCount\" : {\n            \"r\" : NumberLong(1),\n            \"w\" : NumberLong(1)\n         }\n      },\n      \"Collection\" : {\n         \"acquireCount\" : {\n            \"r\" : NumberLong(1),\n            \"w\" : NumberLong(1)\n         }\n      },\n      \"Mutex\" : {\n         \"acquireCount\" : {\n            \"r\" : NumberLong(6)\n         }\n      }\n   }\n}\n{\n   \"shard\" : \"shardA\",\n   \"type\" : \"idleSession\",\n   ...\n}","programmingLanguage":"JavaScript"}
        </script>
        <div class="css-16lmvu9">
         <div class="leafygreen-ui-196mwvg">
          <div class="leafygreen-ui-yzcs8i">
           <pre class="leafygreen-ui-11itue3" tabindex="-1"><code class="lg-highlight-hljs-light javascript leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx">{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">"shard"</span> <!-- -->: <span class="lg-highlight-string">"shardB"</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">"type"</span> <!-- -->: <span class="lg-highlight-string">"idleSession"</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">"host"</span> <!-- -->: <span class="lg-highlight-string">"shardB.mongodb.com:27018"</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">"desc"</span> <!-- -->: <span class="lg-highlight-string">"inactive transaction"</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">"client_s"</span> <!-- -->: <span class="lg-highlight-string">"198.51.100.1:53961"</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">"connectionId"</span> <!-- -->: <span class="lg-highlight-title lg-highlight-class">NumberLong</span>(<span class="lg-highlight-number">63</span>)<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">"appName"</span> <!-- -->: <span class="lg-highlight-string">""</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">"clientMetadata"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"driver"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-string">"name"</span> <!-- -->: <span class="lg-highlight-string">"PyMongo"</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-string">"version"</span> <!-- -->: <span class="lg-highlight-string">"3.9.0"</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      }<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"os"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-string">"type"</span> <!-- -->: <span class="lg-highlight-string">"Darwin"</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-string">"name"</span> <!-- -->: <span class="lg-highlight-string">"Darwin"</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-string">"architecture"</span> <!-- -->: <span class="lg-highlight-string">"x86_64"</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-string">"version"</span> <!-- -->: <span class="lg-highlight-string">"10.14.6"</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      }<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"platform"</span> <!-- -->: <span class="lg-highlight-string">"CPython 3.7.1.final.0"</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"mongos"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-string">"host"</span> <!-- -->: <span class="lg-highlight-string">"example.mongodb.com:27017"</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-string">"client"</span> <!-- -->: <span class="lg-highlight-string">"198.51.100.1:53976"</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-string">"version"</span> <!-- -->: <span class="lg-highlight-string">"4.2.0"</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">      }</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   }<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">"lsid"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"id"</span> <!-- -->: <span class="lg-highlight-title lg-highlight-function">UUID</span>(<span class="lg-highlight-string">"720d403c-8daf-40bb-b61e-329e20b0493b"</span>)<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"uid"</span> <!-- -->: <span class="lg-highlight-title lg-highlight-class">BinData</span>(<span class="lg-highlight-number">0</span>,<span class="lg-highlight-string">"3pxqkATNUYKV/soT7qqKE0zC0BFb0pBz1pk4xXcSHsI="</span>)</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   }<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">"transaction"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"parameters"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-string">"txnNumber"</span> <!-- -->: <span class="lg-highlight-title lg-highlight-class">NumberLong</span>(<span class="lg-highlight-number">1</span>)<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-string">"autocommit"</span> <!-- -->: <span class="lg-highlight-literal">false</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-string">"readConcern"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">            <span class="lg-highlight-string">"level"</span> <!-- -->: <span class="lg-highlight-string">"snapshot"</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">         }</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      }<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"readTimestamp"</span> <!-- -->: <span class="lg-highlight-title lg-highlight-class">Timestamp</span>(<span class="lg-highlight-number">0</span>, <span class="lg-highlight-number">0</span>)<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"startWallClockTime"</span> <!-- -->: <span class="lg-highlight-string">"2019-10-21T18:31:12.192-04:00"</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"timeOpenMicros"</span> <!-- -->: <span class="lg-highlight-title lg-highlight-class">NumberLong</span>(<span class="lg-highlight-number">24137008</span>)<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"timeActiveMicros"</span> <!-- -->: <span class="lg-highlight-title lg-highlight-class">NumberLong</span>(<span class="lg-highlight-number">52</span>)<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"timeInactiveMicros"</span> <!-- -->: <span class="lg-highlight-title lg-highlight-class">NumberLong</span>(<span class="lg-highlight-number">24136956</span>)<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"expiryTime"</span> <!-- -->: <span class="lg-highlight-string">"2019-10-21T18:32:12.192-04:00"</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   }<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">"waitingForLock"</span> <!-- -->: <span class="lg-highlight-literal">false</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">"active"</span> <!-- -->: <span class="lg-highlight-literal">false</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">"locks"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"ReplicationStateTransition"</span> <!-- -->: <span class="lg-highlight-string">"w"</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"Global"</span> <!-- -->: <span class="lg-highlight-string">"w"</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"Database"</span> <!-- -->: <span class="lg-highlight-string">"w"</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"Collection"</span> <!-- -->: <span class="lg-highlight-string">"w"</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   }<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">"lockStats"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"ReplicationStateTransition"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-string">"acquireCount"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">            <span class="lg-highlight-string">"w"</span> <!-- -->: <span class="lg-highlight-title lg-highlight-class">NumberLong</span>(<span class="lg-highlight-number">3</span>)</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         }</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      }<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"Global"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-string">"acquireCount"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">            <span class="lg-highlight-string">"r"</span> <!-- -->: <span class="lg-highlight-title lg-highlight-class">NumberLong</span>(<span class="lg-highlight-number">1</span>)<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">            <span class="lg-highlight-string">"w"</span> <!-- -->: <span class="lg-highlight-title lg-highlight-class">NumberLong</span>(<span class="lg-highlight-number">1</span>)</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         }</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      }<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"Database"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-string">"acquireCount"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">            <span class="lg-highlight-string">"r"</span> <!-- -->: <span class="lg-highlight-title lg-highlight-class">NumberLong</span>(<span class="lg-highlight-number">1</span>)<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">            <span class="lg-highlight-string">"w"</span> <!-- -->: <span class="lg-highlight-title lg-highlight-class">NumberLong</span>(<span class="lg-highlight-number">1</span>)</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         }</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      }<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"Collection"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-string">"acquireCount"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">            <span class="lg-highlight-string">"r"</span> <!-- -->: <span class="lg-highlight-title lg-highlight-class">NumberLong</span>(<span class="lg-highlight-number">1</span>)<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">            <span class="lg-highlight-string">"w"</span> <!-- -->: <span class="lg-highlight-title lg-highlight-class">NumberLong</span>(<span class="lg-highlight-number">1</span>)</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         }</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      }<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"Mutex"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         <span class="lg-highlight-string">"acquireCount"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">            <span class="lg-highlight-string">"r"</span> <!-- -->: <span class="lg-highlight-title lg-highlight-class">NumberLong</span>(<span class="lg-highlight-number">6</span>)</td></tr><tr class=""><td class="leafygreen-ui-7razhx">         }</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      }</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   }</td></tr><tr class=""><td class="leafygreen-ui-7razhx">}</td></tr><tr class=""><td class="leafygreen-ui-7razhx">{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">"shard"</span> <!-- -->: <span class="lg-highlight-string">"shardA"</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">"type"</span> <!-- -->: <span class="lg-highlight-string">"idleSession"</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <!-- -->...</td></tr><tr class=""><td class="leafygreen-ui-7razhx">}</td></tr></tbody></table></code></pre>
           <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
            <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
             <div class="leafygreen-ui-xhlipt">
              <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
               <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
               </path>
              </svg>
             </div>
            </button>
           </div>
          </div>
         </div>
        </div>
       </div>
      </div>
     </div>
    </div>
   </div>
   <span class="leafygreen-ui-1qnjd6d" id="std-label-sampled-queries-currentOp-stage">
   </span>
  </section>
  <section>
   <h3 class="contains-headerlink leafygreen-ui-15ajumo" weight="medium">
    Sampled Queries
    <a class="headerlink leafygreen-ui-1kepx47" href="#sampled-queries" title="Permalink to this heading">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="sampled-queries">
     </div>
    </a>
   </h3>
   <p class="leafygreen-ui-1kp3ins">
    This example returns information on query sampling progess.
   </p>
   <ul class="leafygreen-ui-rioki0">
    <li class="leafygreen-ui-d7p7b6">
     <p class="leafygreen-ui-1kp3ins">
      The first stage returns documents for all active operations.
     </p>
    </li>
    <li class="leafygreen-ui-d7p7b6">
     <p class="leafygreen-ui-1kp3ins">
      The second stage filters for documents related to the query
analyzer.
     </p>
    </li>
   </ul>
   <script class="structured_data" type="application/ld+json">
    {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"db.getSiblingDB(\"admin\").aggregate( [\n   { $currentOp: { allUsers: true, localOps: true } },\n   { $match: { desc: \"query analyzer\" } }\n] )","programmingLanguage":"JavaScript"}
   </script>
   <div class="css-16lmvu9">
    <div class="leafygreen-ui-196mwvg">
     <div class="leafygreen-ui-yzcs8i">
      <pre class="leafygreen-ui-11itue3" tabindex="-1"><code class="lg-highlight-hljs-light javascript leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx">db.<span class="lg-highlight-title lg-highlight-function">getSiblingDB</span>(<span class="lg-highlight-string">"admin"</span>).<span class="lg-highlight-title lg-highlight-function">aggregate</span>( <!-- -->[</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <!-- -->{ <span class="lg-highlight-attr">$currentOp</span>: <!-- -->{ <span class="lg-highlight-attr">allUsers</span>: <span class="lg-highlight-literal">true</span>, <span class="lg-highlight-attr">localOps</span>: <span class="lg-highlight-literal">true</span> } }<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <!-- -->{ <span class="lg-highlight-attr">$match</span>: <!-- -->{ <span class="lg-highlight-attr">desc</span>: <span class="lg-highlight-string">"query analyzer"</span> } }</td></tr><tr class=""><td class="leafygreen-ui-7razhx">] )</td></tr></tbody></table></code></pre>
      <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
       <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
        <div class="leafygreen-ui-xhlipt">
         <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
          <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
          </path>
         </svg>
        </div>
       </button>
      </div>
     </div>
    </div>
   </div>
   <p class="leafygreen-ui-1kp3ins">
    This pipeline returns output similar to the following:
   </p>
   <div aria-hidden="true">
   </div>
   <div class="leafygreen-ui-1b75luy" data-lgid="lg-tabs">
    <div class="leafygreen-ui-jp7pox" id="tabs-16">
     <div aria-label="Tabs to describe usage of currentOp-query-analyzer-mongod-shardsvr/currentOp-query-analyzer-mongos/currentOp-query-analyzer-rs" aria-orientation="horizontal" class="leafygreen-ui-m8p1vb lg-ui-tab-list-0000" data-lgid="lg-tabs-tab_list" role="tablist">
      <button aria-controls="_fm61i1i48" aria-selected="true" class="leafygreen-ui-1l773z1" data-text="" id="_vo07y0ngb" name="" role="tab" tabindex="0">
       <div class="leafygreen-ui-1nxuzmg">
        Replica Set
       </div>
      </button>
      <button aria-controls="_0u5h2erl1" aria-selected="false" class="leafygreen-ui-1ogxb8f" data-text="" id="_v3b6seuy5" name="" role="tab" tabindex="-1">
       <div class="leafygreen-ui-1nxuzmg">
        Sharded Cluster: mongos
       </div>
      </button>
      <button aria-controls="_1tdugcrj0" aria-selected="false" class="leafygreen-ui-1ogxb8f" data-text="" id="_wxkk5eo91" name="" role="tab" tabindex="-1">
       <div class="leafygreen-ui-1nxuzmg">
        Sharded Cluster: mongod --shardsvr
       </div>
      </button>
     </div>
     <div class="leafygreen-ui-ov1ktg">
      <div class="leafygreen-ui-1sg2lsz">
      </div>
     </div>
    </div>
    <div class="lg-ui-tab-panels-0000" data-lgid="lg-tabs-tab_panels">
     <div>
      <div aria-labelledby="_cpc5rgk8o" class="" id="_2rht29aar" role="tabpanel">
       <div class="leafygreen-ui-1kdmo88">
        <p class="leafygreen-ui-1kp3ins">
         When run on a
         <code class="leafygreen-ui-1l06pbn">
          mongod
         </code>
         that is part of a replica set:
        </p>
        <script class="structured_data" type="application/ld+json">
         {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"{\n   \"desc\" : \"query analyzer\",\n   \"ns\" : \"testDb.testColl\",\n   \"collUuid\" : UUID(\"ed9dfb1d-5b7c-4c6b-82e9-b0f537335795\"),\n   \"samplesPerSecond\" : 5,\n   \"startTime\" : ISODate(\"2023-08-08T16:23:22.846Z\"),\n   \"sampledReadsCount\" : NumberLong(2),\n   \"sampledReadsBytes\" : NumberLong(346),\n   \"sampledWritesCount\" : NumberLong(3),\n   \"sampledWritesBytes\" : NumberLong(904)\n}"}
        </script>
        <div class="css-16lmvu9">
         <div class="leafygreen-ui-196mwvg">
          <div class="leafygreen-ui-yzcs8i">
           <pre class="leafygreen-ui-11itue3" tabindex="-1"><code class="lg-highlight-hljs-light none leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx">{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   "desc" : "query analyzer",</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   "ns" : "testDb.testColl",</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   "collUuid" : UUID("ed9dfb1d-5b7c-4c6b-82e9-b0f537335795"),</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   "samplesPerSecond" : 5,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   "startTime" : ISODate("2023-08-08T16:23:22.846Z"),</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   "sampledReadsCount" : NumberLong(2),</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   "sampledReadsBytes" : NumberLong(346),</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   "sampledWritesCount" : NumberLong(3),</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   "sampledWritesBytes" : NumberLong(904)</td></tr><tr class=""><td class="leafygreen-ui-7razhx">}</td></tr></tbody></table></code></pre>
           <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
            <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
             <div class="leafygreen-ui-xhlipt">
              <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
               <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
               </path>
              </svg>
             </div>
            </button>
           </div>
          </div>
         </div>
        </div>
       </div>
      </div>
     </div>
     <div>
      <div aria-labelledby="_4qhjsegyt" class="leafygreen-ui-38lglc" id="_5nn38cy5m" role="tabpanel">
       <div class="leafygreen-ui-1kdmo88">
        <p class="leafygreen-ui-1kp3ins">
         When run on a
         <code class="leafygreen-ui-1l06pbn">
          mongos
         </code>
         that is part of a sharded cluster:
        </p>
        <script class="structured_data" type="application/ld+json">
         {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"{\n   \"desc\" : \"query analyzer\",\n   \"ns\" : \"testDb.testColl\",\n   \"collUuid\" : UUID(\"5130b4df-5966-434f-85f0-f8956b5ca74e\"),\n   \"samplesPerSecond\" : 5,\n   \"startTime\" : ISODate(\"2023-08-08T16:15:07.427Z\"),\n   \"sampledReadsCount\" : NumberLong(2),\n   \"sampledWritesCount\" : NumberLong(3)\n}"}
        </script>
        <div class="css-16lmvu9">
         <div class="leafygreen-ui-196mwvg">
          <div class="leafygreen-ui-yzcs8i">
           <pre class="leafygreen-ui-11itue3" tabindex="-1"><code class="lg-highlight-hljs-light none leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx">{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   "desc" : "query analyzer",</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   "ns" : "testDb.testColl",</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   "collUuid" : UUID("5130b4df-5966-434f-85f0-f8956b5ca74e"),</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   "samplesPerSecond" : 5,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   "startTime" : ISODate("2023-08-08T16:15:07.427Z"),</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   "sampledReadsCount" : NumberLong(2),</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   "sampledWritesCount" : NumberLong(3)</td></tr><tr class=""><td class="leafygreen-ui-7razhx">}</td></tr></tbody></table></code></pre>
           <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
            <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
             <div class="leafygreen-ui-xhlipt">
              <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
               <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
               </path>
              </svg>
             </div>
            </button>
           </div>
          </div>
         </div>
        </div>
       </div>
      </div>
     </div>
     <div>
      <div aria-labelledby="_lynppjfd2" class="leafygreen-ui-38lglc" id="_lp5p61cho" role="tabpanel">
       <div class="leafygreen-ui-1kdmo88">
        <p class="leafygreen-ui-1kp3ins">
         When run on a
         <code class="leafygreen-ui-1l06pbn">
          mongod --shardsvr
         </code>
         that is part of a sharded
cluster:
        </p>
        <script class="structured_data" type="application/ld+json">
         {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"{\n   \"desc\" : \"query analyzer\",\n   \"ns\" : \"testDb.testColl\",\n   \"collUuid\" : UUID(\"5130b4df-5966-434f-85f0-f8956b5ca74e\"),\n   \"startTime\" : ISODate(\"2023-08-08T16:15:07.427Z\"),\n   \"sampledReadsCount\" : NumberLong(2),\n   \"sampledReadsBytes\" : NumberLong(346),\n   \"sampledWritesCount\" : NumberLong(3),\n   \"sampledWritesBytes\" : NumberLong(904)\n}"}
        </script>
        <div class="css-16lmvu9">
         <div class="leafygreen-ui-196mwvg">
          <div class="leafygreen-ui-yzcs8i">
           <pre class="leafygreen-ui-11itue3" tabindex="-1"><code class="lg-highlight-hljs-light none leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx">{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   "desc" : "query analyzer",</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   "ns" : "testDb.testColl",</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   "collUuid" : UUID("5130b4df-5966-434f-85f0-f8956b5ca74e"),</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   "startTime" : ISODate("2023-08-08T16:15:07.427Z"),</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   "sampledReadsCount" : NumberLong(2),</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   "sampledReadsBytes" : NumberLong(346),</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   "sampledWritesCount" : NumberLong(3),</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   "sampledWritesBytes" : NumberLong(904)</td></tr><tr class=""><td class="leafygreen-ui-7razhx">}</td></tr></tbody></table></code></pre>
           <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
            <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
             <div class="leafygreen-ui-xhlipt">
              <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
               <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
               </path>
              </svg>
             </div>
            </button>
           </div>
          </div>
         </div>
        </div>
       </div>
      </div>
     </div>
    </div>
   </div>
   <span class="leafygreen-ui-1qnjd6d" id="std-label-currentOp-stage-output-fields">
   </span>
  </section>
 </section>
 <section>
  <h2 class="contains-headerlink leafygreen-ui-19f71ei" weight="medium">
   Output Fields
   <a class="headerlink leafygreen-ui-1kepx47" href="#output-fields" title="Permalink to this heading">
    <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
     <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
     </path>
     <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
     </path>
    </svg>
    <div class="css-1btu0w3 evvkmar0" id="output-fields">
    </div>
   </a>
  </h2>
  <p class="leafygreen-ui-1kp3ins">
   Each output document may contain a subset of the following fields, as
relevant for the operation:
  </p>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.type
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.type" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.type">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     The type of operation. Values are either:
    </p>
    <ul class="leafygreen-ui-rioki0">
     <li class="leafygreen-ui-d7p7b6">
      <p class="leafygreen-ui-1kp3ins">
       <code class="leafygreen-ui-1l06pbn">
        op
       </code>
      </p>
     </li>
     <li class="leafygreen-ui-d7p7b6">
      <p class="leafygreen-ui-1kp3ins">
       <code class="leafygreen-ui-1l06pbn">
        idleSession
       </code>
      </p>
     </li>
     <li class="leafygreen-ui-d7p7b6">
      <p class="leafygreen-ui-1kp3ins">
       <code class="leafygreen-ui-1l06pbn">
        idleCursor
       </code>
      </p>
     </li>
    </ul>
    <p class="leafygreen-ui-1kp3ins">
     If the
     <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.type" target="_self">
      <span>
       <code class="leafygreen-ui-1l06pbn">
        $currentOp.type
       </code>
      </span>
     </a>
     is
     <code class="leafygreen-ui-1l06pbn">
      op
     </code>
     ,
     <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.op" target="_self">
      <span>
       <code class="leafygreen-ui-1l06pbn">
        $currentOp.op
       </code>
      </span>
     </a>
     provides details on the specific operation.
    </p>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.host
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.host" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.host">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     The name of the host against which the operation is run.
    </p>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.shard
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.shard" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.shard">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     The name of the shard where the operation is running.
    </p>
    <p class="leafygreen-ui-1kp3ins">
     Only present for sharded clusters.
    </p>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.desc
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.desc" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.desc">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     A description of the operation.
    </p>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.connectionId
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.connectionId" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.connectionId">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     An identifier for the connection where the specific operation
originated.
    </p>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.client
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.client" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.client">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     The IP address (or hostname) and the ephemeral port of the client
connection where the operation originates.
    </p>
    <p class="leafygreen-ui-1kp3ins">
     For multi-document transactions,
     <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.client" target="_self">
      <span>
       <code class="leafygreen-ui-1l06pbn">
        $currentOp.client
       </code>
      </span>
     </a>
     stores
information about the most recent client to run an operation inside
the transaction.
    </p>
    <p class="leafygreen-ui-1kp3ins">
     <em>
      For standalones and replica sets only
     </em>
    </p>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.client_s
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.client_s" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.client_s">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     The IP address (or hostname) and the ephemeral port of the
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
      <code class="leafygreen-ui-1l06pbn">
       mongos
      </code>
     </a>
     where the operation originates.
    </p>
    <p class="leafygreen-ui-1kp3ins">
     <em>
      For sharded clusters only
     </em>
    </p>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.clientMetadata
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.clientMetadata" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.clientMetadata">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     Additional information on the client.
    </p>
    <p class="leafygreen-ui-1kp3ins">
     For multi-document transactions,
     <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.client" target="_self">
      <span>
       <code class="leafygreen-ui-1l06pbn">
        $currentOp.client
       </code>
      </span>
     </a>
     stores
information about the most recent client to run an operation inside
the transaction.
    </p>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.appName
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.appName" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.appName">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     The identifier of the client application which ran the operation. Use
the
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/connection-string-options/#mongodb-urioption-urioption.appName">
      <code class="leafygreen-ui-1l06pbn">
       appName
      </code>
     </a>
     connection string option to set a custom value
for the
     <code class="leafygreen-ui-1l06pbn">
      appName
     </code>
     field.
    </p>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.active
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.active" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.active">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     A boolean value specifying whether the operation has started. Value
is
     <code class="leafygreen-ui-1l06pbn">
      true
     </code>
     if the operation has started or
     <code class="leafygreen-ui-1l06pbn">
      false
     </code>
     if the
operation is idle, such as an idle connection, an inactive session, or
an internal thread that is currently idle. An operation can be
active even if the operation has yielded to another operation.
    </p>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.twoPhaseCommitCoordinator
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.twoPhaseCommitCoordinator" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.twoPhaseCommitCoordinator">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     Information on either:
    </p>
    <ul class="leafygreen-ui-rioki0">
     <li class="leafygreen-ui-d7p7b6">
      <span class="leafygreen-ui-1qnjd6d" id="std-label-agg-current-op-commit-coord-metrics">
      </span>
      <p class="leafygreen-ui-1kp3ins">
       The commit coordination metrics for a
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/transactions/#std-label-transactions">
        transaction whose
write operations span multiple shards
        <!-- -->
        .
       </a>
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Commit coordination is handled by a shard, and
       <code class="leafygreen-ui-1l06pbn">
        $currentOp
       </code>
       (run either on a
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
       </a>
       or a
shard member) returns a shard's coordination information only for
transactions the shard is currently coordinating.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       To filter for only the commit coordination metrics:
      </p>
      <script class="structured_data" type="application/ld+json">
       {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"db.getSiblingDB(\"admin\").aggregate( [\n    { $currentOp: { allUsers: true, idleSessions: true } },\n    { $match: { desc: \"transaction coordinator\" } }\n] )","programmingLanguage":"JavaScript"}
      </script>
      <div class="css-16lmvu9">
       <div class="leafygreen-ui-196mwvg">
        <div class="leafygreen-ui-1b1bvay">
         <pre class="leafygreen-ui-11itue3" tabindex="0"><code class="lg-highlight-hljs-light javascript leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx">db.<span class="lg-highlight-title lg-highlight-function">getSiblingDB</span>(<span class="lg-highlight-string">"admin"</span>).<span class="lg-highlight-title lg-highlight-function">aggregate</span>( <!-- -->[</td></tr><tr class=""><td class="leafygreen-ui-7razhx">    <!-- -->{ <span class="lg-highlight-attr">$currentOp</span>: <!-- -->{ <span class="lg-highlight-attr">allUsers</span>: <span class="lg-highlight-literal">true</span>, <span class="lg-highlight-attr">idleSessions</span>: <span class="lg-highlight-literal">true</span> } }<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">    <!-- -->{ <span class="lg-highlight-attr">$match</span>: <!-- -->{ <span class="lg-highlight-attr">desc</span>: <span class="lg-highlight-string">"transaction coordinator"</span> } }</td></tr><tr class=""><td class="leafygreen-ui-7razhx">] )</td></tr></tbody></table></code></pre>
         <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
          <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
           <div class="leafygreen-ui-xhlipt">
            <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
             <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
             </path>
            </svg>
           </div>
          </button>
         </div>
        </div>
       </div>
      </div>
     </li>
     <li class="leafygreen-ui-d7p7b6">
      <span class="leafygreen-ui-1qnjd6d" id="std-label-agg-current-op-commit-coord-operation">
      </span>
      <p class="leafygreen-ui-1kp3ins">
       A specific commit coordination operation (i.e.
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.type" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          type
         </code>
        </span>
       </a>
       is
       <code class="leafygreen-ui-1l06pbn">
        op
       </code>
       and
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.desc" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          desc
         </code>
        </span>
       </a>
       is
       <code class="leafygreen-ui-1l06pbn">
        "TransactionCoordinator"
       </code>
       ) spawned by the transaction
coordinator.
      </p>
     </li>
    </ul>
    <div class="leafygreen-ui-15mdk4" role="note">
     <h2 class="leafygreen-ui-6n7b7d">
      Note
     </h2>
     <div class="leafygreen-ui-9mycqc">
      <ul class="leafygreen-ui-rioki0">
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         If run with
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#std-label-currentOp-stage-idleSessions" target="_self">
          <span>
           idleSessions: false
          </span>
         </a>
         ,
         <code class="leafygreen-ui-1l06pbn">
          $currentOp
         </code>
         does not
return the
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.twoPhaseCommitCoordinator" target="_self">
          <span>
           <code class="leafygreen-ui-1l06pbn">
            $currentOp.twoPhaseCommitCoordinator
           </code>
          </span>
         </a>
         information in
         <code class="leafygreen-ui-1l06pbn">
          inactive
         </code>
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.twoPhaseCommitCoordinator.state" target="_self">
          <span>
           <code class="leafygreen-ui-1l06pbn">
            state
           </code>
          </span>
         </a>
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         If access control is enabled and
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#std-label-currentOp-stage-allUsers" target="_self">
          <span>
           allUsers: false
          </span>
         </a>
         ,
         <code class="leafygreen-ui-1l06pbn">
          $currentOp
         </code>
         does not
return
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.twoPhaseCommitCoordinator" target="_self">
          <span>
           <code class="leafygreen-ui-1l06pbn">
            $currentOp.twoPhaseCommitCoordinator
           </code>
          </span>
         </a>
         information.
        </p>
       </li>
      </ul>
     </div>
    </div>
    <dl class="data">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       $currentOp.twoPhaseCommitCoordinator.lsid
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.twoPhaseCommitCoordinator.lsid" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.twoPhaseCommitCoordinator.lsid">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       The session identifier for the multi-shard transaction.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The combination of the
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.twoPhaseCommitCoordinator.lsid" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          lsid
         </code>
        </span>
       </a>
       and
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.twoPhaseCommitCoordinator.txnNumber" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          txnNumber
         </code>
        </span>
       </a>
       identifies
the transaction.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Available for both the
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#std-label-agg-current-op-commit-coord-metrics" target="_self">
        <span>
         commit coordination metrics
        </span>
       </a>
       and for specific
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#std-label-agg-current-op-commit-coord-operation" target="_self">
        <span>
         coordination
operation
         <!-- -->
         .
        </span>
       </a>
      </p>
     </dd>
    </dl>
    <dl class="data">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       $currentOp.twoPhaseCommitCoordinator.txnNumber
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.twoPhaseCommitCoordinator.txnNumber" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.twoPhaseCommitCoordinator.txnNumber">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       The transaction number for the multi-shard transaction.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The combination of the
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.twoPhaseCommitCoordinator.txnNumber" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          txnNumber
         </code>
        </span>
       </a>
       and
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.twoPhaseCommitCoordinator.lsid" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          lsid
         </code>
        </span>
       </a>
       identifies the
transaction.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Available for both the
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#std-label-agg-current-op-commit-coord-metrics" target="_self">
        <span>
         commit coordination metrics
        </span>
       </a>
       and for specific
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#std-label-agg-current-op-commit-coord-operation" target="_self">
        <span>
         coordination
operation
         <!-- -->
         .
        </span>
       </a>
      </p>
     </dd>
    </dl>
    <dl class="data">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       $currentOp.twoPhaseCommitCoordinator.action
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.twoPhaseCommitCoordinator.action" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.twoPhaseCommitCoordinator.action">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       The specific commit coordination operation spawned by the
transaction coordinator:
      </p>
      <ul class="leafygreen-ui-rioki0">
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          "sendingPrepare"
         </code>
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          "sendingCommit"
         </code>
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          "sendingAbort"
         </code>
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          "writingParticipantList"
         </code>
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          "writingDecision"
         </code>
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         <code class="leafygreen-ui-1l06pbn">
          "deletingCoordinatorDoc"
         </code>
        </p>
       </li>
      </ul>
      <p class="leafygreen-ui-1kp3ins">
       Only available for specific
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#std-label-agg-current-op-commit-coord-operation" target="_self">
        <span>
         coordination operation
         <!-- -->
         .
        </span>
       </a>
      </p>
     </dd>
    </dl>
    <dl class="data">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       $currentOp.twoPhaseCommitCoordinator.startTime
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.twoPhaseCommitCoordinator.startTime" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.twoPhaseCommitCoordinator.startTime">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       The start date and time of the
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.twoPhaseCommitCoordinator.action" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          action
         </code>
         .
        </span>
       </a>
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Only available for specific
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#std-label-agg-current-op-commit-coord-operation" target="_self">
        <span>
         coordination operation
         <!-- -->
         .
        </span>
       </a>
      </p>
     </dd>
    </dl>
    <dl class="data">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       $currentOp.twoPhaseCommitCoordinator.numParticipants
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.twoPhaseCommitCoordinator.numParticipants" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.twoPhaseCommitCoordinator.numParticipants">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       Number of shards participating in this commit.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Only available for the
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#std-label-agg-current-op-commit-coord-metrics" target="_self">
        <span>
         commit coordination metrics
         <!-- -->
         .
        </span>
       </a>
      </p>
     </dd>
    </dl>
    <dl class="data">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       $currentOp.twoPhaseCommitCoordinator.state
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.twoPhaseCommitCoordinator.state" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.twoPhaseCommitCoordinator.state">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       The current step/state of the commit coordination process.
      </p>
      <div class="leafygreen-ui-skkc39" tabindex="0">
       <table class="leafygreen-ui-hr8lsv">
        <colgroup>
         <col style="width:20%"/>
         <col style="width:80%"/>
        </colgroup>
        <thead class="leafygreen-ui-a9ho40">
         <tr data-testid="leafygreen-ui-header-row">
          <th class="leafygreen-ui-1trtg6r" role="columnheader" scope="col">
           <div class="leafygreen-ui-ui0te9">
            <div>
             Step/stage
            </div>
           </div>
          </th>
          <th class="leafygreen-ui-13uteka" role="columnheader" scope="col">
           <div class="leafygreen-ui-ui0te9">
            <div>
             Description
            </div>
           </div>
          </th>
         </tr>
        </thead>
        <tbody>
         <tr class="leafygreen-ui-15dvrnp">
          <td class="leafygreen-ui-1drjk7h">
           <div class="leafygreen-ui-1n4j8xf">
            <div>
             <code class="leafygreen-ui-1l06pbn">
              inactive
             </code>
            </div>
           </div>
          </td>
          <td class="leafygreen-ui-1drjk7h">
           <div class="leafygreen-ui-1n4j8xf">
            <div>
             Not actively part of a commit.
            </div>
           </div>
          </td>
         </tr>
         <tr class="leafygreen-ui-15dvrnp">
          <td class="leafygreen-ui-1drjk7h">
           <div class="leafygreen-ui-1n4j8xf">
            <div>
             <code class="leafygreen-ui-1l06pbn">
              writingParticipantList
             </code>
            </div>
           </div>
          </td>
          <td class="leafygreen-ui-1drjk7h">
           <div class="leafygreen-ui-1n4j8xf">
            <div>
             Writing a local record of the list of shards that are part
of this multi-shard transaction.
            </div>
           </div>
          </td>
         </tr>
         <tr class="leafygreen-ui-15dvrnp">
          <td class="leafygreen-ui-1drjk7h">
           <div class="leafygreen-ui-1n4j8xf">
            <div>
             <code class="leafygreen-ui-1l06pbn">
              waitingForVotes
             </code>
            </div>
           </div>
          </td>
          <td class="leafygreen-ui-1drjk7h">
           <div class="leafygreen-ui-1n4j8xf">
            <div>
             Waiting for the participants to respond with vote to commit or abort.
            </div>
           </div>
          </td>
         </tr>
         <tr class="leafygreen-ui-15dvrnp">
          <td class="leafygreen-ui-1drjk7h">
           <div class="leafygreen-ui-1n4j8xf">
            <div>
             <code class="leafygreen-ui-1l06pbn">
              writingDecision
             </code>
            </div>
           </div>
          </td>
          <td class="leafygreen-ui-1drjk7h">
           <div class="leafygreen-ui-1n4j8xf">
            <div>
             Writing a local record of the coordinator's decision to commit or
abort based on votes.
            </div>
           </div>
          </td>
         </tr>
         <tr class="leafygreen-ui-15dvrnp">
          <td class="leafygreen-ui-1drjk7h">
           <div class="leafygreen-ui-1n4j8xf">
            <div>
             <code class="leafygreen-ui-1l06pbn">
              waitingForDecisionAck
             </code>
            </div>
           </div>
          </td>
          <td class="leafygreen-ui-1drjk7h">
           <div class="leafygreen-ui-1n4j8xf">
            <div>
             Waiting for participants to acknowledge the coordinator's
decision to commit or abort.
            </div>
           </div>
          </td>
         </tr>
         <tr class="leafygreen-ui-15dvrnp">
          <td class="leafygreen-ui-1drjk7h">
           <div class="leafygreen-ui-1n4j8xf">
            <div>
             <code class="leafygreen-ui-1l06pbn">
              deletingCoordinatorDoc
             </code>
            </div>
           </div>
          </td>
          <td class="leafygreen-ui-1drjk7h">
           <div class="leafygreen-ui-1n4j8xf">
            <div>
             Deleting the local record of commit decision.
            </div>
           </div>
          </td>
         </tr>
        </tbody>
       </table>
      </div>
      <p class="leafygreen-ui-1kp3ins">
       Only available for the
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#std-label-agg-current-op-commit-coord-metrics" target="_self">
        <span>
         commit coordination metrics
         <!-- -->
         .
        </span>
       </a>
      </p>
      <p class="leafygreen-ui-1kp3ins">
       See also
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.twoPhaseCommitCoordinator.stepDurations" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          $currentOp.twoPhaseCommitCoordinator.stepDurations
         </code>
         .
        </span>
       </a>
      </p>
     </dd>
    </dl>
    <dl class="data">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       $currentOp.twoPhaseCommitCoordinator.commitStartTime
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.twoPhaseCommitCoordinator.commitStartTime" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.twoPhaseCommitCoordinator.commitStartTime">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       The date and time when the commit started.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Only available for the
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#std-label-agg-current-op-commit-coord-metrics" target="_self">
        <span>
         commit coordination metrics
         <!-- -->
         .
        </span>
       </a>
      </p>
     </dd>
    </dl>
    <dl class="data">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       $currentOp.twoPhaseCommitCoordinator.hasRecoveredFromFailover
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.twoPhaseCommitCoordinator.hasRecoveredFromFailover" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.twoPhaseCommitCoordinator.hasRecoveredFromFailover">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       A boolean that indicates whether the commit coordination was
restarted due to failover on the shard that is coordinating the
commit.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       If
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.twoPhaseCommitCoordinator.hasRecoveredFromFailover" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          hasRecoveredFromFailover
         </code>
        </span>
       </a>
       is true, then the times specified in
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.twoPhaseCommitCoordinator.stepDurations" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          $currentOp.twoPhaseCommitCoordinator.stepDurations
         </code>
        </span>
       </a>
       may
not be accurate for all steps.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Only available for the
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#std-label-agg-current-op-commit-coord-metrics" target="_self">
        <span>
         commit coordination metrics
         <!-- -->
         .
        </span>
       </a>
      </p>
     </dd>
    </dl>
    <dl class="data">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       $currentOp.twoPhaseCommitCoordinator.stepDurations
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.twoPhaseCommitCoordinator.stepDurations" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.twoPhaseCommitCoordinator.stepDurations">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       A document that contains the duration, in microseconds, of the
completed or in-progress
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.twoPhaseCommitCoordinator.state" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          steps/state
         </code>
        </span>
       </a>
       of the active
process as well as the cumulative total duration; for example:
      </p>
      <script class="structured_data" type="application/ld+json">
       {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"\"stepDurations\" : {\n   \"writingParticipantListMicros\" : NumberLong(17801),\n   \"totalCommitDurationMicros\" : NumberLong(42488463),\n   \"waitingForVotesMicros\" : NumberLong(30378502),\n   \"writingDecisionMicros\" : NumberLong(15015),\n   \"waitingForDecisionAcksMicros\" : NumberLong(12077145),\n   \"deletingCoordinatorDocMicros\" : NumberLong(6009)\n},","programmingLanguage":"JavaScript"}
      </script>
      <div class="css-16lmvu9">
       <div class="leafygreen-ui-196mwvg">
        <div class="leafygreen-ui-1b1bvay">
         <pre class="leafygreen-ui-11itue3" tabindex="0"><code class="lg-highlight-hljs-light javascript leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx"><span class="lg-highlight-string">"stepDurations"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">"writingParticipantListMicros"</span> <!-- -->: <span class="lg-highlight-title lg-highlight-class">NumberLong</span>(<span class="lg-highlight-number">17801</span>)<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">"totalCommitDurationMicros"</span> <!-- -->: <span class="lg-highlight-title lg-highlight-class">NumberLong</span>(<span class="lg-highlight-number">42488463</span>)<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">"waitingForVotesMicros"</span> <!-- -->: <span class="lg-highlight-title lg-highlight-class">NumberLong</span>(<span class="lg-highlight-number">30378502</span>)<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">"writingDecisionMicros"</span> <!-- -->: <span class="lg-highlight-title lg-highlight-class">NumberLong</span>(<span class="lg-highlight-number">15015</span>)<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">"waitingForDecisionAcksMicros"</span> <!-- -->: <span class="lg-highlight-title lg-highlight-class">NumberLong</span>(<span class="lg-highlight-number">12077145</span>)<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">"deletingCoordinatorDocMicros"</span> <!-- -->: <span class="lg-highlight-title lg-highlight-class">NumberLong</span>(<span class="lg-highlight-number">6009</span>)</td></tr><tr class=""><td class="leafygreen-ui-7razhx">}<!-- -->,</td></tr></tbody></table></code></pre>
         <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
          <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
           <div class="leafygreen-ui-xhlipt">
            <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
             <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
             </path>
            </svg>
           </div>
          </button>
         </div>
        </div>
       </div>
      </div>
      <p class="leafygreen-ui-1kp3ins">
       If
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.twoPhaseCommitCoordinator.hasRecoveredFromFailover" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          $currentOp.twoPhaseCommitCoordinator.hasRecoveredFromFailover
         </code>
        </span>
       </a>
       is true, then the times specified in
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.twoPhaseCommitCoordinator.stepDurations" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          stepDurations
         </code>
        </span>
       </a>
       may
not be accurate for all steps.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       For a coordinator in an
       <code class="leafygreen-ui-1l06pbn">
        inactive
       </code>
       state, the document is empty:
      </p>
      <script class="structured_data" type="application/ld+json">
       {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"\"stepDurations\" : {\n}","programmingLanguage":"JavaScript"}
      </script>
      <div class="css-16lmvu9">
       <div class="leafygreen-ui-196mwvg">
        <div class="leafygreen-ui-yzcs8i">
         <pre class="leafygreen-ui-11itue3" tabindex="-1"><code class="lg-highlight-hljs-light javascript leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx"><span class="lg-highlight-string">"stepDurations"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">}</td></tr></tbody></table></code></pre>
         <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
          <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
           <div class="leafygreen-ui-xhlipt">
            <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
             <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
             </path>
            </svg>
           </div>
          </button>
         </div>
        </div>
       </div>
      </div>
      <p class="leafygreen-ui-1kp3ins">
       Only available for the
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#std-label-agg-current-op-commit-coord-metrics" target="_self">
        <span>
         commit coordination metrics
         <!-- -->
         .
        </span>
       </a>
      </p>
      <p class="leafygreen-ui-1kp3ins">
       See
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.twoPhaseCommitCoordinator.state" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          $currentOp.twoPhaseCommitCoordinator.state
         </code>
         .
        </span>
       </a>
      </p>
     </dd>
    </dl>
    <dl class="data">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       $currentOp.twoPhaseCommitCoordinator.decision
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.twoPhaseCommitCoordinator.decision" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.twoPhaseCommitCoordinator.decision">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       A document that contains the commit/abort decision, for example:
      </p>
      <ul class="leafygreen-ui-rioki0">
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         For a commit decision:
        </p>
        <script class="structured_data" type="application/ld+json">
         {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"\"decision\" : {\n   \"decision\" : \"commit\",\n   \"commitTimestamp\" : Timestamp(1572034669, 3)\n}","programmingLanguage":"JavaScript"}
        </script>
        <div class="css-16lmvu9">
         <div class="leafygreen-ui-196mwvg">
          <div class="leafygreen-ui-yzcs8i">
           <pre class="leafygreen-ui-11itue3" tabindex="-1"><code class="lg-highlight-hljs-light javascript leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx"><span class="lg-highlight-string">"decision"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">"decision"</span> <!-- -->: <span class="lg-highlight-string">"commit"</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">"commitTimestamp"</span> <!-- -->: <span class="lg-highlight-title lg-highlight-class">Timestamp</span>(<span class="lg-highlight-number">1572034669</span>, <span class="lg-highlight-number">3</span>)</td></tr><tr class=""><td class="leafygreen-ui-7razhx">}</td></tr></tbody></table></code></pre>
           <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
            <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
             <div class="leafygreen-ui-xhlipt">
              <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
               <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
               </path>
              </svg>
             </div>
            </button>
           </div>
          </div>
         </div>
        </div>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         For an abort decision:
        </p>
        <script class="structured_data" type="application/ld+json">
         {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"\"decision\" : {\n   \"decision\" : \"abort\",\n   \"abortStatus\" : {\n      \"code\" : 282,\n      \"codeName\" : \"TransactionCoordinatorReachedAbortDecision\",\n      \"errmsg\" : \"Transaction exceeded deadline\"\n   }\n}","programmingLanguage":"JavaScript"}
        </script>
        <div class="css-16lmvu9">
         <div class="leafygreen-ui-196mwvg">
          <div class="leafygreen-ui-1b1bvay">
           <pre class="leafygreen-ui-11itue3" tabindex="0"><code class="lg-highlight-hljs-light javascript leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx"><span class="lg-highlight-string">"decision"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">"decision"</span> <!-- -->: <span class="lg-highlight-string">"abort"</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">"abortStatus"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"code"</span> <!-- -->: <span class="lg-highlight-number">282</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"codeName"</span> <!-- -->: <span class="lg-highlight-string">"TransactionCoordinatorReachedAbortDecision"</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"errmsg"</span> <!-- -->: <span class="lg-highlight-string">"Transaction exceeded deadline"</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   }</td></tr><tr class=""><td class="leafygreen-ui-7razhx">}</td></tr></tbody></table></code></pre>
           <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
            <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
             <div class="leafygreen-ui-xhlipt">
              <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
               <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
               </path>
              </svg>
             </div>
            </button>
           </div>
          </div>
         </div>
        </div>
       </li>
      </ul>
      <p class="leafygreen-ui-1kp3ins">
       Only available for the
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#std-label-agg-current-op-commit-coord-metrics" target="_self">
        <span>
         commit coordination metrics
         <!-- -->
         .
        </span>
       </a>
      </p>
     </dd>
    </dl>
    <dl class="data">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       $currentOp.twoPhaseCommitCoordinator.deadline
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.twoPhaseCommitCoordinator.deadline" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.twoPhaseCommitCoordinator.deadline">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       The date and time by which the commit must finish.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Only available for the
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#std-label-agg-current-op-commit-coord-metrics" target="_self">
        <span>
         commit coordination metrics
         <!-- -->
         .
        </span>
       </a>
      </p>
     </dd>
    </dl>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.currentOpTime
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.currentOpTime" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.currentOpTime">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     The start time of the operation.
    </p>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.effectiveUsers
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.effectiveUsers" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.effectiveUsers">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     An array that contains a document for each user associated with the
operation. Each user document contains the
     <code class="leafygreen-ui-1l06pbn">
      user
     </code>
     name and the
authentication
     <code class="leafygreen-ui-1l06pbn">
      db
     </code>
     .
    </p>
    <div class="leafygreen-ui-13vw3ie" role="note">
     <h2 class="leafygreen-ui-1fn4p2b">
      Tip
     </h2>
     <h3 class="leafygreen-ui-144d5kf">
      <strong>
       See also:
      </strong>
     </h3>
     <div class="leafygreen-ui-9mycqc">
      <p class="leafygreen-ui-1kp3ins">
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.runBy" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          $currentOp.runBy
         </code>
        </span>
       </a>
      </p>
     </div>
    </div>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.runBy
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.runBy" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.runBy">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     An array that contains a document for each user who is impersonating
the
     <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.effectiveUsers" target="_self">
      <span>
       <code class="leafygreen-ui-1l06pbn">
        effectiveUser(s)
       </code>
      </span>
     </a>
     for the
operation. The runBy document contains the
     <code class="leafygreen-ui-1l06pbn">
      user
     </code>
     name
and the authentication
     <code class="leafygreen-ui-1l06pbn">
      db
     </code>
     . In general, the impersonating user is
the
     <code class="leafygreen-ui-1l06pbn">
      __system
     </code>
     user; e.g.
    </p>
    <script class="structured_data" type="application/ld+json">
     {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"\"runBy\" : [\n   {\n      \"user\" : \"__system\",\n      \"db\" : \"local\"\n   }\n]","programmingLanguage":"JavaScript"}
    </script>
    <div class="css-16lmvu9">
     <div class="leafygreen-ui-196mwvg">
      <div class="leafygreen-ui-yzcs8i">
       <pre class="leafygreen-ui-11itue3" tabindex="-1"><code class="lg-highlight-hljs-light javascript leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx"><span class="lg-highlight-string">"runBy"</span> <!-- -->: <!-- -->[</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"user"</span> <!-- -->: <span class="lg-highlight-string">"__system"</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">      <span class="lg-highlight-string">"db"</span> <!-- -->: <span class="lg-highlight-string">"local"</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   }</td></tr><tr class=""><td class="leafygreen-ui-7razhx">]</td></tr></tbody></table></code></pre>
       <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
        <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
         <div class="leafygreen-ui-xhlipt">
          <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
           <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
           </path>
          </svg>
         </div>
        </button>
       </div>
      </div>
     </div>
    </div>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.opid
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.opid" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.opid">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     The identifier for the operation. You can pass this value to
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/method/db.killOp/#mongodb-method-db.killOp">
      <code class="leafygreen-ui-1l06pbn">
       db.killOp()
      </code>
     </a>
     in
     <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://www.mongodb.com/docs/mongodb-shell/#mongodb-binary-bin.mongosh" target="_self">
      <span>
       <code class="leafygreen-ui-1l06pbn">
        mongosh
       </code>
      </span>
     </a>
     to terminate the
operation.
    </p>
    <div class="leafygreen-ui-1sjx7ru" role="note">
     <h2 class="leafygreen-ui-29m78u">
      Warning
     </h2>
     <div class="leafygreen-ui-9mycqc">
      <p class="leafygreen-ui-1kp3ins">
       Terminate running operations with extreme caution. Only use
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/method/db.killOp/#mongodb-method-db.killOp">
        <code class="leafygreen-ui-1l06pbn">
         db.killOp()
        </code>
       </a>
       to terminate operations initiated by clients
and
       <em>
        do not
       </em>
       terminate internal database operations.
      </p>
     </div>
    </div>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.secs_running
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.secs_running" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.secs_running">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     The duration of the operation in seconds. MongoDB calculates this
value by subtracting the current time from the start time of the
operation.
    </p>
    <p class="leafygreen-ui-1kp3ins">
     Only present if the operation is running; i.e. if
     <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.active" target="_self">
      <span>
       <code class="leafygreen-ui-1l06pbn">
        active
       </code>
      </span>
     </a>
     is
     <code class="leafygreen-ui-1l06pbn">
      true
     </code>
     .
    </p>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.microsecs_running
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.microsecs_running" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.microsecs_running">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     The duration of the operation in microseconds. MongoDB calculates this
value by subtracting the current time from the start time of the
operation.
    </p>
    <p class="leafygreen-ui-1kp3ins">
     Only present if the operation is running; i.e. if
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/currentOp/#mongodb-data-currentOp.active">
      <code class="leafygreen-ui-1l06pbn">
       active
      </code>
     </a>
     is
     <code class="leafygreen-ui-1l06pbn">
      true
     </code>
     .
    </p>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.lsid
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.lsid" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.lsid">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     The session identifier.
    </p>
    <p class="leafygreen-ui-1kp3ins">
     Only present if the operation is associated with a
session.
    </p>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.transaction
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.transaction" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.transaction">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     A document that contains
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/transactions/#std-label-transactions">
      multi-document transaction
     </a>
     information.
    </p>
    <p class="leafygreen-ui-1kp3ins">
     Only present if the operation is part of a transaction:
    </p>
    <ul class="leafygreen-ui-rioki0">
     <li class="leafygreen-ui-d7p7b6">
      <p class="leafygreen-ui-1kp3ins">
       On a replica set.
      </p>
     </li>
     <li class="leafygreen-ui-d7p7b6">
      <p class="leafygreen-ui-1kp3ins">
       On a sharded cluster if
       <code class="leafygreen-ui-1l06pbn">
        $currentOp
       </code>
       is run
       <em>
        without
       </em>
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#std-label-currentOp-stage-localOps" target="_self">
        <span>
         localOps:true
        </span>
       </a>
       . The transaction
information is per shard.
      </p>
     </li>
     <li class="leafygreen-ui-d7p7b6">
      <p class="leafygreen-ui-1kp3ins">
       On a sharded cluster if
       <code class="leafygreen-ui-1l06pbn">
        $currentOp
       </code>
       is run with
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#std-label-currentOp-stage-localOps" target="_self">
        <span>
         localOps:true
        </span>
       </a>
       . The transaction information is a
composite view rather than per shard.
      </p>
     </li>
    </ul>
    <dl class="data">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       $currentOp.transaction.parameters
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.transaction.parameters" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.transaction.parameters">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       A document that contains information on multi-document
transaction.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Only present if the operation is part of a multi-document
transaction.
      </p>
      <dl class="data">
       <dt>
        <code class="leafygreen-ui-1l06pbn">
         $currentOp.transaction.parameters.txnNumber
        </code>
        <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.transaction.parameters.txnNumber" title="Permalink to this definition">
         <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
          <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
          </path>
          <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
          </path>
         </svg>
         <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.transaction.parameters.txnNumber">
         </div>
        </a>
       </dt>
       <dd>
        <p class="leafygreen-ui-1kp3ins">
         The transaction number.
        </p>
        <p class="leafygreen-ui-1kp3ins">
         Only present if the operation is part of a multi-document
transaction.
        </p>
       </dd>
      </dl>
      <dl class="data">
       <dt>
        <code class="leafygreen-ui-1l06pbn">
         $currentOp.transaction.parameters.autocommit
        </code>
        <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.transaction.parameters.autocommit" title="Permalink to this definition">
         <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
          <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
          </path>
          <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
          </path>
         </svg>
         <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.transaction.parameters.autocommit">
         </div>
        </a>
       </dt>
       <dd>
        <p class="leafygreen-ui-1kp3ins">
         A boolean flag that indicates if autocommit is on for the
transaction.
        </p>
        <p class="leafygreen-ui-1kp3ins">
         Only present if the operation is part of a multi-document
transaction.
        </p>
       </dd>
      </dl>
      <dl class="data">
       <dt>
        <code class="leafygreen-ui-1l06pbn">
         $currentOp.transaction.parameters.readConcern
        </code>
        <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.transaction.parameters.readConcern" title="Permalink to this definition">
         <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
          <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
          </path>
          <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
          </path>
         </svg>
         <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.transaction.parameters.readConcern">
         </div>
        </a>
       </dt>
       <dd>
        <p class="leafygreen-ui-1kp3ins">
         The
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/transactions/#std-label-transactions-read-concern">
          read concern
         </a>
         for the
transaction.
        </p>
        <p class="leafygreen-ui-1kp3ins">
         Multi-document transactions support read concern
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/read-concern-snapshot/#mongodb-readconcern-readconcern.-snapshot-">
          <code class="leafygreen-ui-1l06pbn">
           "snapshot"
          </code>
         </a>
         ,
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/read-concern-local/#mongodb-readconcern-readconcern.-local-">
          <code class="leafygreen-ui-1l06pbn">
           "local"
          </code>
         </a>
         , and
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/read-concern-majority/#mongodb-readconcern-readconcern.-majority-">
          <code class="leafygreen-ui-1l06pbn">
           "majority"
          </code>
          .
         </a>
        </p>
        <p class="leafygreen-ui-1kp3ins">
         Only present if the operation is part of a multi-document
transaction.
        </p>
       </dd>
      </dl>
      <dl class="data">
       <dt>
        <code class="leafygreen-ui-1l06pbn">
         $currentOp.transaction.globalReadTimestamp
        </code>
        <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.transaction.globalReadTimestamp" title="Permalink to this definition">
         <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
          <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
          </path>
          <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
          </path>
         </svg>
         <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.transaction.globalReadTimestamp">
         </div>
        </a>
       </dt>
       <dd>
        <p class="leafygreen-ui-1kp3ins">
         The timestamp of the snapshot read by the operations in the
sharded cluster transaction that uses
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/transactions/#std-label-transactions-read-concern-snapshot">
          "snapshot" read
concern
         </a>
         . For
transactions on sharded clusters, the read concern
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/read-concern-snapshot/#mongodb-readconcern-readconcern.-snapshot-">
          <code class="leafygreen-ui-1l06pbn">
           "snapshot"
          </code>
         </a>
         of the data is synchronized across
shards; i.e. other read concerns cannot guarantee that the
data is from the same snapshot view across the shards.
        </p>
        <p class="leafygreen-ui-1kp3ins">
         Only present when run with
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#std-label-currentOp-stage-localOps" target="_self">
          <span>
           localOps: true
          </span>
         </a>
         for sharded cluster transactions.
        </p>
       </dd>
      </dl>
      <dl class="data">
       <dt>
        <code class="leafygreen-ui-1l06pbn">
         $currentOp.transaction.readTimestamp
        </code>
        <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.transaction.readTimestamp" title="Permalink to this definition">
         <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
          <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
          </path>
          <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
          </path>
         </svg>
         <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.transaction.readTimestamp">
         </div>
        </a>
       </dt>
       <dd>
        <p class="leafygreen-ui-1kp3ins">
         The timestamp of the snapshot being read by the operations in
this transaction
        </p>
        <p class="leafygreen-ui-1kp3ins">
         Only present if the operation is part of a multi-document
transaction. However, the field is not returned if:
        </p>
        <ul class="leafygreen-ui-rioki0">
         <li class="leafygreen-ui-d7p7b6">
          <p class="leafygreen-ui-1kp3ins">
           the transaction is on a sharded cluster and uses
           <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/transactions/#std-label-transactions-read-concern-snapshot">
            "snapshot" read concern
           </a>
           , and
          </p>
         </li>
         <li class="leafygreen-ui-d7p7b6">
          <p class="leafygreen-ui-1kp3ins">
           <code class="leafygreen-ui-1l06pbn">
            $currentOp
           </code>
           is run with
           <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#std-label-currentOp-stage-localOps" target="_self">
            <span>
             localOps: true
             <!-- -->
             .
            </span>
           </a>
          </p>
         </li>
        </ul>
        <p class="leafygreen-ui-1kp3ins">
         Instead,
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.transaction.globalReadTimestamp" target="_self">
          <span>
           <code class="leafygreen-ui-1l06pbn">
            $currentOp.transaction.globalReadTimestamp
           </code>
          </span>
         </a>
         is
returned.
        </p>
       </dd>
      </dl>
      <dl class="data">
       <dt>
        <code class="leafygreen-ui-1l06pbn">
         $currentOp.transaction.startWallClockTime
        </code>
        <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.transaction.startWallClockTime" title="Permalink to this definition">
         <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
          <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
          </path>
          <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
          </path>
         </svg>
         <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.transaction.startWallClockTime">
         </div>
        </a>
       </dt>
       <dd>
        <p class="leafygreen-ui-1kp3ins">
         The date and time (with time zone) of the transaction start.
        </p>
        <p class="leafygreen-ui-1kp3ins">
         Only present if the operation is part of a multi-document
transaction.
        </p>
       </dd>
      </dl>
      <dl class="data">
       <dt>
        <code class="leafygreen-ui-1l06pbn">
         $currentOp.transaction.timeOpenMicros
        </code>
        <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.transaction.timeOpenMicros" title="Permalink to this definition">
         <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
          <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
          </path>
          <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
          </path>
         </svg>
         <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.transaction.timeOpenMicros">
         </div>
        </a>
       </dt>
       <dd>
        <p class="leafygreen-ui-1kp3ins">
         The duration, in microseconds, for the transaction.
        </p>
        <p class="leafygreen-ui-1kp3ins">
         The
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.transaction.timeActiveMicros" target="_self">
          <span>
           <code class="leafygreen-ui-1l06pbn">
            timeActiveMicros
           </code>
          </span>
         </a>
         value added to the
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.transaction.timeInactiveMicros" target="_self">
          <span>
           <code class="leafygreen-ui-1l06pbn">
            timeInactiveMicros
           </code>
          </span>
         </a>
         should equal the
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.transaction.timeOpenMicros" target="_self">
          <span>
           <code class="leafygreen-ui-1l06pbn">
            timeOpenMicros
           </code>
           .
          </span>
         </a>
        </p>
        <p class="leafygreen-ui-1kp3ins">
         Only present if the operation is part of a multi-document
transaction.
        </p>
       </dd>
      </dl>
      <dl class="data">
       <dt>
        <code class="leafygreen-ui-1l06pbn">
         $currentOp.transaction.timeActiveMicros
        </code>
        <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.transaction.timeActiveMicros" title="Permalink to this definition">
         <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
          <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
          </path>
          <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
          </path>
         </svg>
         <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.transaction.timeActiveMicros">
         </div>
        </a>
       </dt>
       <dd>
        <p class="leafygreen-ui-1kp3ins">
         The total amount of time that the transaction has been active;
i.e. when the transaction had operations running.
        </p>
        <p class="leafygreen-ui-1kp3ins">
         The
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.transaction.timeActiveMicros" target="_self">
          <span>
           <code class="leafygreen-ui-1l06pbn">
            timeActiveMicros
           </code>
          </span>
         </a>
         value added to the
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.transaction.timeInactiveMicros" target="_self">
          <span>
           <code class="leafygreen-ui-1l06pbn">
            timeInactiveMicros
           </code>
          </span>
         </a>
         should equal the
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.transaction.timeOpenMicros" target="_self">
          <span>
           <code class="leafygreen-ui-1l06pbn">
            timeOpenMicros
           </code>
           .
          </span>
         </a>
        </p>
        <p class="leafygreen-ui-1kp3ins">
         Only present if the operation is part of a multi-document
transaction.
        </p>
       </dd>
      </dl>
      <dl class="data">
       <dt>
        <code class="leafygreen-ui-1l06pbn">
         $currentOp.transaction.timeInactiveMicros
        </code>
        <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.transaction.timeInactiveMicros" title="Permalink to this definition">
         <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
          <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
          </path>
          <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
          </path>
         </svg>
         <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.transaction.timeInactiveMicros">
         </div>
        </a>
       </dt>
       <dd>
        <p class="leafygreen-ui-1kp3ins">
         The total amount of time that the transaction has been
inactive; i.e. when the transaction had no operations running.
        </p>
        <p class="leafygreen-ui-1kp3ins">
         The
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.transaction.timeInactiveMicros" target="_self">
          <span>
           <code class="leafygreen-ui-1l06pbn">
            timeInactiveMicros
           </code>
          </span>
         </a>
         value added to the
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.transaction.timeActiveMicros" target="_self">
          <span>
           <code class="leafygreen-ui-1l06pbn">
            timeActiveMicros
           </code>
          </span>
         </a>
         should equal the
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.transaction.timeOpenMicros" target="_self">
          <span>
           <code class="leafygreen-ui-1l06pbn">
            timeOpenMicros
           </code>
           .
          </span>
         </a>
        </p>
        <p class="leafygreen-ui-1kp3ins">
         Only present if the operation is part of a multi-document
transaction.
        </p>
       </dd>
      </dl>
      <dl class="data">
       <dt>
        <code class="leafygreen-ui-1l06pbn">
         $currentOp.transaction.numParticipants
        </code>
        <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.transaction.numParticipants" title="Permalink to this definition">
         <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
          <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
          </path>
          <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
          </path>
         </svg>
         <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.transaction.numParticipants">
         </div>
        </a>
       </dt>
       <dd>
        <p class="leafygreen-ui-1kp3ins">
         Number of shards participating in this transaction.
        </p>
        <p class="leafygreen-ui-1kp3ins">
         Only present if the operation is part of a transaction on a
sharded cluster and
         <code class="leafygreen-ui-1l06pbn">
          $currentOp
         </code>
         is run with
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#std-label-currentOp-stage-localOps" target="_self">
          <span>
           localOps: true
          </span>
         </a>
        </p>
       </dd>
      </dl>
      <dl class="data">
       <dt>
        <code class="leafygreen-ui-1l06pbn">
         $currentOp.transaction.participants
        </code>
        <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.transaction.participants" title="Permalink to this definition">
         <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
          <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
          </path>
          <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
          </path>
         </svg>
         <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.transaction.participants">
         </div>
        </a>
       </dt>
       <dd>
        <p class="leafygreen-ui-1kp3ins">
         An array of documents detailing the participating shards in
this transaction. Each document contains the name, a flag
indicating if the shard acts as the commit coordinator, and a
flag indicating if the shard is only involved in read
operations for the transaction.
        </p>
        <script class="structured_data" type="application/ld+json">
         {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"{\n   \"name\" : \"shardA\",\n   \"coordinator\" : false,\n   \"readOnly\" : false\n}","programmingLanguage":"JavaScript"}
        </script>
        <div class="css-1lju8ps">
         <div class="leafygreen-ui-196mwvg">
          <div class="leafygreen-ui-1jheeh3">
           <pre class="leafygreen-ui-1453az5" tabindex="-1"><code class="lg-highlight-hljs-light javascript leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx">{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">"name"</span> <!-- -->: <span class="lg-highlight-string">"shardA"</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">"coordinator"</span> <!-- -->: <span class="lg-highlight-literal">false</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-string">"readOnly"</span> <!-- -->: <span class="lg-highlight-literal">false</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">}</td></tr></tbody></table></code></pre>
          </div>
         </div>
        </div>
        <p class="leafygreen-ui-1kp3ins">
         Only present if the operation is part of a transaction on a
sharded cluster and
         <code class="leafygreen-ui-1l06pbn">
          $currentOp
         </code>
         is run with
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#std-label-currentOp-stage-localOps" target="_self">
          <span>
           localOps: true
          </span>
         </a>
        </p>
       </dd>
      </dl>
      <dl class="data">
       <dt>
        <code class="leafygreen-ui-1l06pbn">
         $currentOp.transaction.numReadOnlyParticipants
        </code>
        <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.transaction.numReadOnlyParticipants" title="Permalink to this definition">
         <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
          <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
          </path>
          <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
          </path>
         </svg>
         <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.transaction.numReadOnlyParticipants">
         </div>
        </a>
       </dt>
       <dd>
        <p class="leafygreen-ui-1kp3ins">
         Number of shards only affected by read operations in this
transaction.
        </p>
        <p class="leafygreen-ui-1kp3ins">
         Only present if the operation is part of a transaction on a
sharded cluster and
         <code class="leafygreen-ui-1l06pbn">
          $currentOp
         </code>
         is run with
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#std-label-currentOp-stage-localOps" target="_self">
          <span>
           localOps: true
          </span>
         </a>
        </p>
       </dd>
      </dl>
      <dl class="data">
       <dt>
        <code class="leafygreen-ui-1l06pbn">
         $currentOp.transaction.numNonReadOnlyParticipants
        </code>
        <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.transaction.numNonReadOnlyParticipants" title="Permalink to this definition">
         <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
          <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
          </path>
          <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
          </path>
         </svg>
         <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.transaction.numNonReadOnlyParticipants">
         </div>
        </a>
       </dt>
       <dd>
        <p class="leafygreen-ui-1kp3ins">
         Number of shards affected by operations other than reads in
this transaction.
        </p>
        <p class="leafygreen-ui-1kp3ins">
         Only present if the operation is part of a transaction on a
sharded cluster and
         <code class="leafygreen-ui-1l06pbn">
          $currentOp
         </code>
         is run with
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#std-label-currentOp-stage-localOps" target="_self">
          <span>
           localOps: true
          </span>
         </a>
        </p>
       </dd>
      </dl>
      <dl class="data">
       <dt>
        <code class="leafygreen-ui-1l06pbn">
         $currentOp.transaction.expiryTime
        </code>
        <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.transaction.expiryTime" title="Permalink to this definition">
         <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
          <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
          </path>
          <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
          </path>
         </svg>
         <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.transaction.expiryTime">
         </div>
        </a>
       </dt>
       <dd>
        <p class="leafygreen-ui-1kp3ins">
         The date and time (with time zone) when the transaction will
time out and abort.
        </p>
        <p class="leafygreen-ui-1kp3ins">
         The
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.transaction.expiryTime" target="_self">
          <span>
           <code class="leafygreen-ui-1l06pbn">
            $currentOp.transaction.expiryTime
           </code>
          </span>
         </a>
         equals the
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.transaction.startWallClockTime" target="_self">
          <span>
           <code class="leafygreen-ui-1l06pbn">
            $currentOp.transaction.startWallClockTime
           </code>
          </span>
         </a>
         + the
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/parameters/#mongodb-parameter-param.transactionLifetimeLimitSeconds">
          <code class="leafygreen-ui-1l06pbn">
           transactionLifetimeLimitSeconds
          </code>
          .
         </a>
        </p>
        <p class="leafygreen-ui-1kp3ins">
         For more information, see
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/transactions-production-consideration/#std-label-transaction-limit">
          Runtime Limit
         </a>
         for
transactions.
        </p>
        <p class="leafygreen-ui-1kp3ins">
         Only present if the operation is part of a multi-document
transaction.
        </p>
       </dd>
      </dl>
     </dd>
    </dl>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.op
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.op" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.op">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     A string that identifies the specific operation type. Only present if
     <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.type" target="_self">
      <span>
       <code class="leafygreen-ui-1l06pbn">
        $currentOp.type
       </code>
      </span>
     </a>
     is
     <code class="leafygreen-ui-1l06pbn">
      op
     </code>
     .
    </p>
    <p class="leafygreen-ui-1kp3ins">
     The possible values are:
    </p>
    <ul class="leafygreen-ui-rioki0">
     <li class="leafygreen-ui-d7p7b6">
      <p class="leafygreen-ui-1kp3ins">
       <code class="leafygreen-ui-1l06pbn">
        "none"
       </code>
      </p>
     </li>
     <li class="leafygreen-ui-d7p7b6">
      <p class="leafygreen-ui-1kp3ins">
       <code class="leafygreen-ui-1l06pbn">
        "update"
       </code>
      </p>
     </li>
     <li class="leafygreen-ui-d7p7b6">
      <p class="leafygreen-ui-1kp3ins">
       <code class="leafygreen-ui-1l06pbn">
        "insert"
       </code>
      </p>
     </li>
     <li class="leafygreen-ui-d7p7b6">
      <p class="leafygreen-ui-1kp3ins">
       <code class="leafygreen-ui-1l06pbn">
        "query"
       </code>
      </p>
     </li>
     <li class="leafygreen-ui-d7p7b6">
      <p class="leafygreen-ui-1kp3ins">
       <code class="leafygreen-ui-1l06pbn">
        "command"
       </code>
      </p>
     </li>
     <li class="leafygreen-ui-d7p7b6">
      <p class="leafygreen-ui-1kp3ins">
       <code class="leafygreen-ui-1l06pbn">
        "getmore"
       </code>
      </p>
     </li>
     <li class="leafygreen-ui-d7p7b6">
      <p class="leafygreen-ui-1kp3ins">
       <code class="leafygreen-ui-1l06pbn">
        "remove"
       </code>
      </p>
     </li>
     <li class="leafygreen-ui-d7p7b6">
      <p class="leafygreen-ui-1kp3ins">
       <code class="leafygreen-ui-1l06pbn">
        "killcursors"
       </code>
      </p>
     </li>
    </ul>
    <p class="leafygreen-ui-1kp3ins">
     <code class="leafygreen-ui-1l06pbn">
      "command"
     </code>
     operations include most
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/#std-label-database-commands">
      commands
     </a>
     such as the
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/createIndexes/#mongodb-dbcommand-dbcmd.createIndexes">
      <code class="leafygreen-ui-1l06pbn">
       createIndexes
      </code>
     </a>
     ,
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/aggregate/#mongodb-dbcommand-dbcmd.aggregate">
      <code class="leafygreen-ui-1l06pbn">
       aggregate
      </code>
     </a>
     , and
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/findAndModify/#mongodb-dbcommand-dbcmd.findAndModify">
      <code class="leafygreen-ui-1l06pbn">
       findAndModify
      </code>
      .
     </a>
    </p>
    <p class="leafygreen-ui-1kp3ins">
     <code class="leafygreen-ui-1l06pbn">
      "query"
     </code>
     operations include
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/find/#mongodb-dbcommand-dbcmd.find">
      <code class="leafygreen-ui-1l06pbn">
       find
      </code>
     </a>
     operations and OP_QUERY operations.
    </p>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.ns
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.ns" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.ns">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     The
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/glossary/#std-term-namespace">
      namespace
     </a>
     the operation targets. A namespace consists of
the
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/glossary/#std-term-database">
      database
     </a>
     name and the
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/glossary/#std-term-collection">
      collection
     </a>
     name
concatenated with a dot (
     <code class="leafygreen-ui-1l06pbn">
      .
     </code>
     ); that is,
     <code class="leafygreen-ui-1l06pbn">
      "&lt;database&gt;.&lt;collection&gt;"
     </code>
     .
    </p>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.command
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.command" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.command">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     A document containing the full command object associated with this
operation.
    </p>
    <p class="leafygreen-ui-1kp3ins">
     For example, the following output contains the command object for a
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/find/#mongodb-dbcommand-dbcmd.find">
      <code class="leafygreen-ui-1l06pbn">
       find
      </code>
     </a>
     operation on a collection named
     <code class="leafygreen-ui-1l06pbn">
      items
     </code>
     in a
database named
     <code class="leafygreen-ui-1l06pbn">
      test
     </code>
     :
    </p>
    <script class="structured_data" type="application/ld+json">
     {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"\"command\" : {\n  \"find\" : \"items\",\n  \"filter\" : {\n    \"sku\" : 1403978\n  },\n  ...\n  \"$db\" : \"test\"\n}","programmingLanguage":"JavaScript"}
    </script>
    <div class="css-16lmvu9">
     <div class="leafygreen-ui-196mwvg">
      <div class="leafygreen-ui-yzcs8i">
       <pre class="leafygreen-ui-11itue3" tabindex="-1"><code class="lg-highlight-hljs-light javascript leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx"><span class="lg-highlight-string">"command"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">  <span class="lg-highlight-string">"find"</span> <!-- -->: <span class="lg-highlight-string">"items"</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">  <span class="lg-highlight-string">"filter"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">    <span class="lg-highlight-string">"sku"</span> <!-- -->: <span class="lg-highlight-number">1403978</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">  }<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">  <!-- -->...</td></tr><tr class=""><td class="leafygreen-ui-7razhx">  <span class="lg-highlight-string">"$db"</span> <!-- -->: <span class="lg-highlight-string">"test"</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">}</td></tr></tbody></table></code></pre>
       <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
        <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
         <div class="leafygreen-ui-xhlipt">
          <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
           <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
           </path>
          </svg>
         </div>
        </button>
       </div>
      </div>
     </div>
    </div>
    <p class="leafygreen-ui-1kp3ins">
     The following example output contains the command object for a
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/getMore/#mongodb-dbcommand-dbcmd.getMore">
      <code class="leafygreen-ui-1l06pbn">
       getMore
      </code>
     </a>
     operation generated by
a command with cursor ID
     <code class="leafygreen-ui-1l06pbn">
      19234103609
     </code>
     on a collection named
     <code class="leafygreen-ui-1l06pbn">
      items
     </code>
     in a database named
     <code class="leafygreen-ui-1l06pbn">
      test
     </code>
     :
    </p>
    <script class="structured_data" type="application/ld+json">
     {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"\"command\" : {\n    \"getMore\" : NumberLong(\"19234103609\"),\n    \"collection\" : \"items\",\n    \"batchSize\" : 10,\n    ...\n    \"$db\" : \"test\"\n},","programmingLanguage":"JavaScript"}
    </script>
    <div class="css-16lmvu9">
     <div class="leafygreen-ui-196mwvg">
      <div class="leafygreen-ui-yzcs8i">
       <pre class="leafygreen-ui-11itue3" tabindex="-1"><code class="lg-highlight-hljs-light javascript leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx"><span class="lg-highlight-string">"command"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">    <span class="lg-highlight-string">"getMore"</span> <!-- -->: <span class="lg-highlight-title lg-highlight-class">NumberLong</span>(<span class="lg-highlight-string">"19234103609"</span>)<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">    <span class="lg-highlight-string">"collection"</span> <!-- -->: <span class="lg-highlight-string">"items"</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">    <span class="lg-highlight-string">"batchSize"</span> <!-- -->: <span class="lg-highlight-number">10</span>,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">    <!-- -->...</td></tr><tr class=""><td class="leafygreen-ui-7razhx">    <span class="lg-highlight-string">"$db"</span> <!-- -->: <span class="lg-highlight-string">"test"</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">}<!-- -->,</td></tr></tbody></table></code></pre>
       <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
        <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
         <div class="leafygreen-ui-xhlipt">
          <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
           <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
           </path>
          </svg>
         </div>
        </button>
       </div>
      </div>
     </div>
    </div>
    <p class="leafygreen-ui-1kp3ins">
     If the command document exceeds 1 kilobyte, the
document has the following form:
    </p>
    <script class="structured_data" type="application/ld+json">
     {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"\"command\" : {\n  \"$truncated\": &lt;string&gt;,\n  \"comment\": &lt;string&gt;\n}","programmingLanguage":"JavaScript"}
    </script>
    <div class="css-16lmvu9">
     <div class="leafygreen-ui-196mwvg">
      <div class="leafygreen-ui-yzcs8i">
       <pre class="leafygreen-ui-11itue3" tabindex="-1"><code class="lg-highlight-hljs-light javascript leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx"><span class="lg-highlight-string">"command"</span> <!-- -->: <!-- -->{</td></tr><tr class=""><td class="leafygreen-ui-7razhx">  <span class="lg-highlight-string">"$truncated"</span>: &lt;<!-- -->string<!-- -->&gt;<!-- -->,</td></tr><tr class=""><td class="leafygreen-ui-7razhx">  <span class="lg-highlight-string">"comment"</span>: &lt;<!-- -->string<!-- -->&gt;</td></tr><tr class=""><td class="leafygreen-ui-7razhx">}</td></tr></tbody></table></code></pre>
       <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
        <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
         <div class="leafygreen-ui-xhlipt">
          <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
           <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
           </path>
          </svg>
         </div>
        </button>
       </div>
      </div>
     </div>
    </div>
    <p class="leafygreen-ui-1kp3ins">
     The
     <code class="leafygreen-ui-1l06pbn">
      $truncated
     </code>
     field contains a string summary of the document excluding
the document's
     <code class="leafygreen-ui-1l06pbn">
      comment
     </code>
     field if present. If the summary still exceeds
1 kilobyte then it is further truncated, denoted by an ellipsis
(...) at the end of the string.
    </p>
    <p class="leafygreen-ui-1kp3ins">
     The
     <code class="leafygreen-ui-1l06pbn">
      comment
     </code>
     field is present if a comment was passed to the operation.
A comment may be attached to any
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/#std-label-database-commands">
      database command
      <!-- -->
      .
     </a>
    </p>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.cursor
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.cursor" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.cursor">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     A document that contains the cursor information for
     <code class="leafygreen-ui-1l06pbn">
      idleCursor
     </code>
     and
     <code class="leafygreen-ui-1l06pbn">
      getmore
     </code>
     operations; i.e. where
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/currentOp/#mongodb-data-currentOp.type">
      <code class="leafygreen-ui-1l06pbn">
       type
      </code>
     </a>
     is
     <code class="leafygreen-ui-1l06pbn">
      idleCursor
     </code>
     or
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/currentOp/#mongodb-data-currentOp.op">
      <code class="leafygreen-ui-1l06pbn">
       op
      </code>
     </a>
     is
     <code class="leafygreen-ui-1l06pbn">
      getmore
     </code>
     .
    </p>
    <p class="leafygreen-ui-1kp3ins">
     If reporting on a
     <code class="leafygreen-ui-1l06pbn">
      getmore
     </code>
     operation before the
     <code class="leafygreen-ui-1l06pbn">
      getmore
     </code>
     has
accessed its cursor information, the
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/currentOp/#mongodb-data-currentOp.cursor">
      <code class="leafygreen-ui-1l06pbn">
       cursor
      </code>
     </a>
     field
is not available.
    </p>
    <dl class="data">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       $currentOp.cursor.cursorId
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.cursor.cursorId" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.cursor.cursorId">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       The ID of the cursor.
      </p>
     </dd>
    </dl>
    <dl class="data">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       $currentOp.cursor.createdDate
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.cursor.createdDate" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.cursor.createdDate">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       The date and time when the cursor was created.
      </p>
     </dd>
    </dl>
    <dl class="data">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       $currentOp.cursor.lastAccessDate
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.cursor.lastAccessDate" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.cursor.lastAccessDate">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       The date and time when the cursor was last used.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       If the cursor is actively in use (i.e.
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/currentOp/#mongodb-data-currentOp.op">
        <code class="leafygreen-ui-1l06pbn">
         op
        </code>
       </a>
       is
       <code class="leafygreen-ui-1l06pbn">
        getmore
       </code>
       and the
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/currentOp/#mongodb-data-currentOp.type">
        <code class="leafygreen-ui-1l06pbn">
         type
        </code>
       </a>
       is not
       <code class="leafygreen-ui-1l06pbn">
        idleCursor
       </code>
       ), then
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.cursor.lastAccessDate" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          lastAccessDate
         </code>
        </span>
       </a>
       reports either the time the previous
       <code class="leafygreen-ui-1l06pbn">
        getmore
       </code>
       ended
or the time the cursor was created if this is the first
       <code class="leafygreen-ui-1l06pbn">
        getmore
       </code>
       .
      </p>
     </dd>
    </dl>
    <dl class="data">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       $currentOp.cursor.nDocsReturned
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.cursor.nDocsReturned" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.cursor.nDocsReturned">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       The cumulative number of documents returned by the cursor.
      </p>
     </dd>
    </dl>
    <dl class="data">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       $currentOp.cursor.nBatchesReturned
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.cursor.nBatchesReturned" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.cursor.nBatchesReturned">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       The cumulative number of batches returned by the cursor.
      </p>
     </dd>
    </dl>
    <dl class="data">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       $currentOp.cursor.noCursorTimeout
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.cursor.noCursorTimeout" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.cursor.noCursorTimeout">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       The flag that indicates that the cursor doesn't timeout when idle;
i.e. if the cursor has the
       <code class="leafygreen-ui-1l06pbn">
        noTimeout
       </code>
       option set.
      </p>
      <ul class="leafygreen-ui-rioki0">
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         If true, the cursor does not time out when idle.
        </p>
       </li>
       <li class="leafygreen-ui-d7p7b6">
        <p class="leafygreen-ui-1kp3ins">
         If false, the cursor times out when idle.
        </p>
       </li>
      </ul>
      <div class="leafygreen-ui-13vw3ie" role="note">
       <h2 class="leafygreen-ui-1fn4p2b">
        Tip
       </h2>
       <h3 class="leafygreen-ui-144d5kf">
        <strong>
         See also:
        </strong>
       </h3>
       <div class="leafygreen-ui-9mycqc">
        <p class="leafygreen-ui-1kp3ins">
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/method/cursor.addOption/#mongodb-method-cursor.addOption">
          <code class="leafygreen-ui-1l06pbn">
           cursor.addOption()
          </code>
         </a>
        </p>
       </div>
      </div>
     </dd>
    </dl>
    <dl class="data">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       $currentOp.cursor.tailable
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.cursor.tailable" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.cursor.tailable">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       The flag that indicates if the cursor is a
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/tailable-cursors/#std-label-tailable-cursors-landing-page">
        tailable cursor
       </a>
       for a capped collection. Tailable cursors
remain open after the client exhausts the results in the initial
cursor.
      </p>
      <div class="leafygreen-ui-13vw3ie" role="note">
       <h2 class="leafygreen-ui-1fn4p2b">
        Tip
       </h2>
       <h3 class="leafygreen-ui-144d5kf">
        <strong>
         See also:
        </strong>
       </h3>
       <div class="leafygreen-ui-9mycqc">
        <ul class="leafygreen-ui-rioki0">
         <li class="leafygreen-ui-d7p7b6">
          <p class="leafygreen-ui-1kp3ins">
           <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/find/#mongodb-dbcommand-dbcmd.find">
            <code class="leafygreen-ui-1l06pbn">
             find
            </code>
           </a>
          </p>
         </li>
         <li class="leafygreen-ui-d7p7b6">
          <p class="leafygreen-ui-1kp3ins">
           <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/method/cursor.tailable/#mongodb-method-cursor.tailable">
            <code class="leafygreen-ui-1l06pbn">
             cursor.tailable()
            </code>
           </a>
          </p>
         </li>
         <li class="leafygreen-ui-d7p7b6">
          <p class="leafygreen-ui-1kp3ins">
           <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/method/cursor.addOption/#mongodb-method-cursor.addOption">
            <code class="leafygreen-ui-1l06pbn">
             cursor.addOption()
            </code>
           </a>
          </p>
         </li>
        </ul>
       </div>
      </div>
     </dd>
    </dl>
    <dl class="data">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       $currentOp.cursor.awaitData
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.cursor.awaitData" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.cursor.awaitData">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       The flag that indicates whether the
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/tailable-cursors/#std-label-tailable-cursors-landing-page">
        tailable cursor
       </a>
       should temporarily block a
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/getMore/#mongodb-dbcommand-dbcmd.getMore">
        <code class="leafygreen-ui-1l06pbn">
         getMore
        </code>
       </a>
       command on the cursor while waiting for new
data rather than returning no data.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       For non-tailable cursors, the value is always false.
      </p>
      <div class="leafygreen-ui-13vw3ie" role="note">
       <h2 class="leafygreen-ui-1fn4p2b">
        Tip
       </h2>
       <h3 class="leafygreen-ui-144d5kf">
        <strong>
         See also:
        </strong>
       </h3>
       <div class="leafygreen-ui-9mycqc">
        <ul class="leafygreen-ui-rioki0">
         <li class="leafygreen-ui-d7p7b6">
          <p class="leafygreen-ui-1kp3ins">
           <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/find/#mongodb-dbcommand-dbcmd.find">
            <code class="leafygreen-ui-1l06pbn">
             find
            </code>
           </a>
          </p>
         </li>
         <li class="leafygreen-ui-d7p7b6">
          <p class="leafygreen-ui-1kp3ins">
           <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/method/cursor.tailable/#mongodb-method-cursor.tailable">
            <code class="leafygreen-ui-1l06pbn">
             cursor.tailable()
            </code>
           </a>
          </p>
         </li>
         <li class="leafygreen-ui-d7p7b6">
          <p class="leafygreen-ui-1kp3ins">
           <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/method/cursor.addOption/#mongodb-method-cursor.addOption">
            <code class="leafygreen-ui-1l06pbn">
             cursor.addOption()
            </code>
           </a>
          </p>
         </li>
        </ul>
       </div>
      </div>
     </dd>
    </dl>
    <dl class="data">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       $currentOp.cursor.originatingCommand
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.cursor.originatingCommand" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.cursor.originatingCommand">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       The
       <code class="leafygreen-ui-1l06pbn">
        originatingCommand
       </code>
       field contains the full command object
(e.g.
       <code class="leafygreen-ui-1l06pbn">
        find
       </code>
       or
       <code class="leafygreen-ui-1l06pbn">
        aggregate
       </code>
       ) which originally created the
cursor.
      </p>
     </dd>
    </dl>
    <dl class="data">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       $currentOp.cursor.planSummary
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.cursor.planSummary" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.cursor.planSummary">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       A string that specifies whether the cursor uses a collection scan
(
       <code class="leafygreen-ui-1l06pbn">
        COLLSCAN
       </code>
       ) or an index scan (
       <code class="leafygreen-ui-1l06pbn">
        IXSCAN { ... }
       </code>
       ).
      </p>
      <p class="leafygreen-ui-1kp3ins">
       The
       <code class="leafygreen-ui-1l06pbn">
        IXSCAN
       </code>
       also includes the specification document of the index
used.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Not available when running with
       <code class="leafygreen-ui-1l06pbn">
        localOps: true
       </code>
       on
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
        <code class="leafygreen-ui-1l06pbn">
         mongos
        </code>
       </a>
       or when reporting on
       <code class="leafygreen-ui-1l06pbn">
        idleCursors
       </code>
       .
      </p>
     </dd>
    </dl>
    <dl class="data">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       $currentOp.cursor.operationUsingCursorId
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.cursor.operationUsingCursorId" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.cursor.operationUsingCursorId">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       The
       <code class="leafygreen-ui-1l06pbn">
        opid
       </code>
       of the operation using the cursor.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       Only present if the cursor is not idle.
      </p>
     </dd>
    </dl>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.cursor.queryFramework
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.cursor.queryFramework" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.cursor.queryFramework">
     </div>
    </a>
   </dt>
   <dd>
    <div>
     <p>
      <em>
       New
       <!-- -->
       in version
       <!-- -->
       6.2
      </em>
      .
     </p>
    </div>
    <p class="leafygreen-ui-1kp3ins">
     A string that specifies the
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/glossary/#std-term-query-framework">
      query framework
     </a>
     used to process an
operation.
    </p>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.planSummary
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.planSummary" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.planSummary">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     A string that specifies whether the cursor uses a collection scan
(
     <code class="leafygreen-ui-1l06pbn">
      COLLSCAN
     </code>
     ) or an index scan (
     <code class="leafygreen-ui-1l06pbn">
      IXSCAN { ... }
     </code>
     ).
    </p>
    <p class="leafygreen-ui-1kp3ins">
     Not available when running with
     <code class="leafygreen-ui-1l06pbn">
      localOps: true
     </code>
     on
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongos/#mongodb-binary-bin.mongos">
      <code class="leafygreen-ui-1l06pbn">
       mongos
      </code>
      .
     </a>
    </p>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.prepareReadConflicts
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.prepareReadConflicts" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.prepareReadConflicts">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     The number of times the current operation had to wait for a
prepared transaction with a write to commit or abort.
    </p>
    <p class="leafygreen-ui-1kp3ins">
     While waiting, the operation continues to hold any necessary locks
and storage engine resources.
    </p>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.writeConflicts
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.writeConflicts" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.writeConflicts">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     The number of times the current operation conflicted with
another write operation on the same document.
    </p>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.numYields
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.numYields" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.numYields">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.numYields" target="_self">
      <span>
       <code class="leafygreen-ui-1l06pbn">
        numYields
       </code>
      </span>
     </a>
     is a counter that reports the number of times the
operation has yielded to allow other operations to complete.
    </p>
    <p class="leafygreen-ui-1kp3ins">
     Typically, operations yield when they need access to data that
MongoDB has not yet fully read into memory. This allows
other operations that have data in memory to complete quickly
while MongoDB reads in data for the yielding operation.
    </p>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.queryShapeHash
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.queryShapeHash" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.queryShapeHash">
     </div>
    </a>
   </dt>
   <dd>
    <div>
     <p>
      <em>
       New
       <!-- -->
       in version
       <!-- -->
       8.0
      </em>
      .
     </p>
    </div>
    <p class="leafygreen-ui-1kp3ins">
     <code class="leafygreen-ui-1l06pbn">
      queryShapeHash
     </code>
     is a hexadecimal string with the hash of a
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/glossary/#std-term-query-shape">
      query shape
     </a>
     . For details, see
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/query-shapes/#std-label-query-shapes">
      Query Shapes
      <!-- -->
      .
     </a>
    </p>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.dataThroughputLastSecond
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.dataThroughputLastSecond" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.dataThroughputLastSecond">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     Amount of data (in MiB) processed by the
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/validate/#mongodb-dbcommand-dbcmd.validate">
      <code class="leafygreen-ui-1l06pbn">
       validate
      </code>
     </a>
     operation in the last second. Only available for a
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/validate/#mongodb-dbcommand-dbcmd.validate">
      <code class="leafygreen-ui-1l06pbn">
       validate
      </code>
     </a>
     operation that is currently scanning
documents. For example:
    </p>
    <script class="structured_data" type="application/ld+json">
     {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"\"msg\" : \"Validate: scanning documents Validate: scanning documents: 7258/24000 30%\",\n\"progress\" : {\n   \"done\" : 7258,\n   \"total\" : 24000\n},\n\"numYields\" : 0,\n\"dataThroughputLastSecond\" : 15.576952934265137,\n\"dataThroughputAverage\" : 15.375944137573242,","programmingLanguage":"JSON"}
    </script>
    <div class="css-16lmvu9">
     <div class="leafygreen-ui-196mwvg">
      <div class="leafygreen-ui-1b1bvay">
       <pre class="leafygreen-ui-11itue3" tabindex="0"><code class="lg-highlight-hljs-light json leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx"><span class="lg-highlight-attr">"msg"</span> <span class="lg-highlight-punctuation">:</span> <span class="lg-highlight-string">"Validate: scanning documents Validate: scanning documents: 7258/24000 30%"</span><span class="lg-highlight-punctuation">,</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx"><span class="lg-highlight-attr">"progress"</span> <span class="lg-highlight-punctuation">:</span> <span class="lg-highlight-punctuation">{</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">"done"</span> <span class="lg-highlight-punctuation">:</span> <span class="lg-highlight-number">7258</span><span class="lg-highlight-punctuation">,</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">"total"</span> <span class="lg-highlight-punctuation">:</span> <span class="lg-highlight-number">24000</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx"><span class="lg-highlight-punctuation">}</span><span class="lg-highlight-punctuation">,</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx"><span class="lg-highlight-attr">"numYields"</span> <span class="lg-highlight-punctuation">:</span> <span class="lg-highlight-number">0</span><span class="lg-highlight-punctuation">,</span></td></tr><tr class="leafygreen-ui-1wr1lm6"><td class="leafygreen-ui-7razhx"><span class="lg-highlight-attr">"dataThroughputLastSecond"</span> <span class="lg-highlight-punctuation">:</span> <span class="lg-highlight-number">15.576952934265137</span><span class="lg-highlight-punctuation">,</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx"><span class="lg-highlight-attr">"dataThroughputAverage"</span> <span class="lg-highlight-punctuation">:</span> <span class="lg-highlight-number">15.375944137573242</span><span class="lg-highlight-punctuation">,</span></td></tr></tbody></table></code></pre>
       <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
        <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
         <div class="leafygreen-ui-xhlipt">
          <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
           <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
           </path>
          </svg>
         </div>
        </button>
       </div>
      </div>
     </div>
    </div>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.dataThroughputAverage
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.dataThroughputAverage" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.dataThroughputAverage">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     The average amount of data (in MiB) processed by the
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/validate/#mongodb-dbcommand-dbcmd.validate">
      <code class="leafygreen-ui-1l06pbn">
       validate
      </code>
     </a>
     operation. Only available for a
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/validate/#mongodb-dbcommand-dbcmd.validate">
      <code class="leafygreen-ui-1l06pbn">
       validate
      </code>
     </a>
     operation that is currently scanning
documents. For example:
    </p>
    <script class="structured_data" type="application/ld+json">
     {"@context":"https://schema.org","@type":"SoftwareSourceCode","codeSampleType":"code snippet","text":"\"msg\" : \"Validate: scanning documents Validate: scanning documents: 7258/24000 30%\",\n\"progress\" : {\n   \"done\" : 7258,\n   \"total\" : 24000\n},\n\"numYields\" : 0,\n\"dataThroughputLastSecond\" : 15.576952934265137,\n\"dataThroughputAverage\" : 15.375944137573242,","programmingLanguage":"JSON"}
    </script>
    <div class="css-16lmvu9">
     <div class="leafygreen-ui-196mwvg">
      <div class="leafygreen-ui-1b1bvay">
       <pre class="leafygreen-ui-11itue3" tabindex="0"><code class="lg-highlight-hljs-light json leafygreen-ui-9ybzas"><table class="leafygreen-ui-1tr4g10"><tbody><tr class=""><td class="leafygreen-ui-7razhx"><span class="lg-highlight-attr">"msg"</span> <span class="lg-highlight-punctuation">:</span> <span class="lg-highlight-string">"Validate: scanning documents Validate: scanning documents: 7258/24000 30%"</span><span class="lg-highlight-punctuation">,</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx"><span class="lg-highlight-attr">"progress"</span> <span class="lg-highlight-punctuation">:</span> <span class="lg-highlight-punctuation">{</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">"done"</span> <span class="lg-highlight-punctuation">:</span> <span class="lg-highlight-number">7258</span><span class="lg-highlight-punctuation">,</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx">   <span class="lg-highlight-attr">"total"</span> <span class="lg-highlight-punctuation">:</span> <span class="lg-highlight-number">24000</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx"><span class="lg-highlight-punctuation">}</span><span class="lg-highlight-punctuation">,</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx"><span class="lg-highlight-attr">"numYields"</span> <span class="lg-highlight-punctuation">:</span> <span class="lg-highlight-number">0</span><span class="lg-highlight-punctuation">,</span></td></tr><tr class=""><td class="leafygreen-ui-7razhx"><span class="lg-highlight-attr">"dataThroughputLastSecond"</span> <span class="lg-highlight-punctuation">:</span> <span class="lg-highlight-number">15.576952934265137</span><span class="lg-highlight-punctuation">,</span></td></tr><tr class="leafygreen-ui-1wr1lm6"><td class="leafygreen-ui-7razhx"><span class="lg-highlight-attr">"dataThroughputAverage"</span> <span class="lg-highlight-punctuation">:</span> <span class="lg-highlight-number">15.375944137573242</span><span class="lg-highlight-punctuation">,</span></td></tr></tbody></table></code></pre>
       <div class="leafygreen-ui-1bqcprk" data-testid="leafygreen-code-panel">
        <button aria-disabled="false" aria-label="Copy" class="leafygreen-ui-1c6zwke" data-testid="code_copy-button" tabindex="0">
         <div class="leafygreen-ui-xhlipt">
          <svg aria-label="Copy Icon" class="leafygreen-ui-1st74h4" height="16" role="img" viewbox="0 0 16 16" width="16">
           <path clip-rule="evenodd" d="M1 5.71428V10.2857C1 11.2325 1.76751 12 2.71429 12H5.75V7.10957C5.75 6.54414 5.97724 6.00244 6.38065 5.60623L8.67403 3.35381C8.77447 3.25516 8.88376 3.16757 9 3.09182V2.71429C9 1.76751 8.23249 1 7.28571 1H5.8V4.42857C5.8 5.13865 5.22437 5.71428 4.51429 5.71428H1ZM9 4.78571L7.25654 6.49804C7.24689 6.50752 7.23749 6.5172 7.22834 6.52708C7.22208 6.53383 7.21594 6.54068 7.20991 6.54762C7.07504 6.70295 7 6.90234 7 7.10957V7.79762H9H10.0095C10.4829 7.79762 10.8667 7.41386 10.8667 6.94047V4H10.1505C9.92587 4 9.7102 4.0882 9.54992 4.24562L9 4.78571ZM4.86667 1H4.15053C3.92587 1 3.7102 1.0882 3.54992 1.24562L1.25654 3.49804C1.09244 3.65921 1 3.87957 1 4.10957V4.79762H4.00952C4.48291 4.79762 4.86667 4.41386 4.86667 3.94047V1ZM7 12V8.71428H9H10.5143C11.2244 8.71428 11.8 8.13865 11.8 7.42857V4H13.2857C14.2325 4 15 4.76751 15 5.71429V13.2857C15 14.2325 14.2325 15 13.2857 15H8.71429C7.76751 15 7 14.2325 7 13.2857V12Z" fill="currentColor" fill-rule="evenodd">
           </path>
          </svg>
         </div>
        </button>
       </div>
      </div>
     </div>
    </div>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.locks
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.locks" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.locks">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     The
     <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.locks" target="_self">
      <span>
       <code class="leafygreen-ui-1l06pbn">
        locks
       </code>
      </span>
     </a>
     document reports the type and mode of
locks the operation currently holds. The possible lock types are as
follows:
    </p>
    <div class="leafygreen-ui-skkc39" tabindex="0">
     <table class="leafygreen-ui-hr8lsv">
      <colgroup>
       <col style="width:20%"/>
       <col style="width:80%"/>
      </colgroup>
      <thead class="leafygreen-ui-a9ho40">
       <tr data-testid="leafygreen-ui-header-row">
        <th class="leafygreen-ui-1trtg6r" role="columnheader" scope="col">
         <div class="leafygreen-ui-ui0te9">
          <div>
           Lock Type
          </div>
         </div>
        </th>
        <th class="leafygreen-ui-13uteka" role="columnheader" scope="col">
         <div class="leafygreen-ui-ui0te9">
          <div>
           Description
          </div>
         </div>
        </th>
       </tr>
      </thead>
      <tbody>
       <tr class="leafygreen-ui-15dvrnp">
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           <code class="leafygreen-ui-1l06pbn">
            ParallelBatchWriterMode
           </code>
          </div>
         </div>
        </td>
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           <p class="leafygreen-ui-1kp3ins">
            Represents a lock for parallel batch writer mode.
           </p>
           <p class="leafygreen-ui-1kp3ins">
            In earlier versions, PBWM information was reported as part of
the
            <code class="leafygreen-ui-1l06pbn">
             Global
            </code>
            lock information.
           </p>
          </div>
         </div>
        </td>
       </tr>
       <tr class="leafygreen-ui-15dvrnp">
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           <code class="leafygreen-ui-1l06pbn">
            ReplicationStateTransition
           </code>
          </div>
         </div>
        </td>
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           Represents lock taken for
           <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/replica-states/">
            replica set member state
           </a>
           transitions.
          </div>
         </div>
        </td>
       </tr>
       <tr class="leafygreen-ui-15dvrnp">
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           <code class="leafygreen-ui-1l06pbn">
            Global
           </code>
          </div>
         </div>
        </td>
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           Represents global lock.
          </div>
         </div>
        </td>
       </tr>
       <tr class="leafygreen-ui-15dvrnp">
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           <code class="leafygreen-ui-1l06pbn">
            Database
           </code>
          </div>
         </div>
        </td>
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           Represents database lock.
          </div>
         </div>
        </td>
       </tr>
       <tr class="leafygreen-ui-15dvrnp">
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           <code class="leafygreen-ui-1l06pbn">
            Collection
           </code>
          </div>
         </div>
        </td>
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           Represents collection lock.
          </div>
         </div>
        </td>
       </tr>
       <tr class="leafygreen-ui-15dvrnp">
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           <code class="leafygreen-ui-1l06pbn">
            Mutex
           </code>
          </div>
         </div>
        </td>
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           Represents mutex.
          </div>
         </div>
        </td>
       </tr>
       <tr class="leafygreen-ui-15dvrnp">
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           <code class="leafygreen-ui-1l06pbn">
            Metadata
           </code>
          </div>
         </div>
        </td>
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           Represents metadata lock.
          </div>
         </div>
        </td>
       </tr>
       <tr class="leafygreen-ui-15dvrnp">
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           <code class="leafygreen-ui-1l06pbn">
            DDLDatabase
           </code>
          </div>
         </div>
        </td>
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           <p class="leafygreen-ui-1kp3ins">
            Represents a
            <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/glossary/#std-term-DDL--Data-Definition-Language-">
             DDL
            </a>
            database lock.
           </p>
           <div>
            <p>
             <em>
              New
              <!-- -->
              in version
              <!-- -->
              7.1
             </em>
             .
            </p>
           </div>
          </div>
         </div>
        </td>
       </tr>
       <tr class="leafygreen-ui-15dvrnp">
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           <code class="leafygreen-ui-1l06pbn">
            DDLCollection
           </code>
          </div>
         </div>
        </td>
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           <p class="leafygreen-ui-1kp3ins">
            Represents a
            <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/glossary/#std-term-DDL--Data-Definition-Language-">
             DDL
            </a>
            collection
lock.
           </p>
           <div>
            <p>
             <em>
              New
              <!-- -->
              in version
              <!-- -->
              7.1
             </em>
             .
            </p>
           </div>
          </div>
         </div>
        </td>
       </tr>
       <tr class="leafygreen-ui-15dvrnp">
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           <code class="leafygreen-ui-1l06pbn">
            oplog
           </code>
          </div>
         </div>
        </td>
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           Represents lock on the
           <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/glossary/#std-term-oplog">
            oplog
            <!-- -->
            .
           </a>
          </div>
         </div>
        </td>
       </tr>
      </tbody>
     </table>
    </div>
    <p class="leafygreen-ui-1kp3ins">
     The possible modes are as follows:
    </p>
    <div class="leafygreen-ui-skkc39" tabindex="0">
     <table class="leafygreen-ui-hr8lsv">
      <colgroup>
       <col style="width:20%"/>
       <col style="width:80%"/>
      </colgroup>
      <thead class="leafygreen-ui-a9ho40">
       <tr data-testid="leafygreen-ui-header-row">
        <th class="leafygreen-ui-1trtg6r" role="columnheader" scope="col">
         <div class="leafygreen-ui-ui0te9">
          <div>
           Lock Mode
          </div>
         </div>
        </th>
        <th class="leafygreen-ui-13uteka" role="columnheader" scope="col">
         <div class="leafygreen-ui-ui0te9">
          <div>
           Description
          </div>
         </div>
        </th>
       </tr>
      </thead>
      <tbody>
       <tr class="">
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           <code class="leafygreen-ui-1l06pbn">
            R
           </code>
          </div>
         </div>
        </td>
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           Represents Shared (S) lock.
          </div>
         </div>
        </td>
       </tr>
       <tr class="">
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           <code class="leafygreen-ui-1l06pbn">
            W
           </code>
          </div>
         </div>
        </td>
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           Represents Exclusive (X) lock.
          </div>
         </div>
        </td>
       </tr>
       <tr class="">
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           <code class="leafygreen-ui-1l06pbn">
            r
           </code>
          </div>
         </div>
        </td>
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           Represents Intent Shared (IS) lock.
          </div>
         </div>
        </td>
       </tr>
       <tr class="">
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           <code class="leafygreen-ui-1l06pbn">
            w
           </code>
          </div>
         </div>
        </td>
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           Represents Intent Exclusive (IX) lock.
          </div>
         </div>
        </td>
       </tr>
      </tbody>
     </table>
    </div>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.lockStats
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.lockStats" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.lockStats">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     For each lock type and mode (see
     <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.locks" target="_self">
      <span>
       <code class="leafygreen-ui-1l06pbn">
        locks
       </code>
      </span>
     </a>
     for
descriptions of lock types and modes), returns the following
information:
    </p>
    <dl class="data">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       $currentOp.lockStats.acquireCount
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.lockStats.acquireCount" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.lockStats.acquireCount">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       Number of times the operation acquired the lock in the specified
mode.
      </p>
     </dd>
    </dl>
    <dl class="data">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       $currentOp.lockStats.acquireWaitCount
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.lockStats.acquireWaitCount" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.lockStats.acquireWaitCount">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       Number of times the operation had to wait for the
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.lockStats.acquireCount" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          acquireCount
         </code>
        </span>
       </a>
       lock acquisitions
because the locks were held in a conflicting mode.
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.lockStats.acquireWaitCount" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          acquireWaitCount
         </code>
        </span>
       </a>
       is less than or
equal to
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.lockStats.acquireCount" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          acquireCount
         </code>
         .
        </span>
       </a>
      </p>
     </dd>
    </dl>
    <dl class="data">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       $currentOp.lockStats.timeAcquiringMicros
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.lockStats.timeAcquiringMicros" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.lockStats.timeAcquiringMicros">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       Cumulative time in microseconds that the operation had to wait to
acquire the locks.
      </p>
      <p class="leafygreen-ui-1kp3ins">
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.lockStats.timeAcquiringMicros" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          timeAcquiringMicros
         </code>
        </span>
       </a>
       divided by
       <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.lockStats.acquireWaitCount" target="_self">
        <span>
         <code class="leafygreen-ui-1l06pbn">
          acquireWaitCount
         </code>
        </span>
       </a>
       gives an
approximate average wait time for the particular lock mode.
      </p>
     </dd>
    </dl>
    <dl class="data">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       $currentOp.lockStats.deadlockCount
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.lockStats.deadlockCount" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.lockStats.deadlockCount">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       Number of times the operation encountered deadlocks while waiting
for lock acquisitions.
      </p>
     </dd>
    </dl>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.waitingForLock
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.waitingForLock" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.waitingForLock">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     Returns a boolean value.
     <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.waitingForLock" target="_self">
      <span>
       <code class="leafygreen-ui-1l06pbn">
        waitingForLock
       </code>
      </span>
     </a>
     is
     <code class="leafygreen-ui-1l06pbn">
      true
     </code>
     if the
operation is waiting for a lock and
     <code class="leafygreen-ui-1l06pbn">
      false
     </code>
     if the operation has
the required lock.
    </p>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.msg
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.msg" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.msg">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     The
     <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.msg" target="_self">
      <span>
       <code class="leafygreen-ui-1l06pbn">
        msg
       </code>
      </span>
     </a>
     provides a message that describes the status and
progress of the operation. In the case of indexing or mapReduce
operations, the field reports the completion percentage.
    </p>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.progress
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.progress" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.progress">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     Reports on the progress of mapReduce or indexing operations. The
     <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.progress" target="_self">
      <span>
       <code class="leafygreen-ui-1l06pbn">
        progress
       </code>
      </span>
     </a>
     fields corresponds to the completion percentage in
the
     <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.msg" target="_self">
      <span>
       <code class="leafygreen-ui-1l06pbn">
        msg
       </code>
      </span>
     </a>
     field. The
     <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-data--currentOp.progress" target="_self">
      <span>
       <code class="leafygreen-ui-1l06pbn">
        progress
       </code>
      </span>
     </a>
     specifies the following
information:
    </p>
    <dl class="data">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       $currentOp.progress.done
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.progress.done" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.progress.done">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       Reports the number of work items completed.
      </p>
     </dd>
    </dl>
    <dl class="data">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       $currentOp.progress.total
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.progress.total" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.progress.total">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       Reports the total number of work items.
      </p>
     </dd>
    </dl>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.killPending
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.killPending" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.killPending">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     Returns
     <code class="leafygreen-ui-1l06pbn">
      true
     </code>
     if the operation is currently flagged for
termination.  When the operation encounters its next safe termination point, the
operation terminates.
    </p>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.waitingForFlowControl
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.waitingForFlowControl" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.waitingForFlowControl">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     A boolean that indicates if the operation had to wait because
of
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/replication/#std-label-replication-flow-control">
      flow control
      <!-- -->
      .
     </a>
    </p>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.flowControlStats
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.flowControlStats" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.flowControlStats">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     The flow control statistics for this operation.
    </p>
    <dl class="data">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       $currentOp.flowControlStats.acquireCount
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.flowControlStats.acquireCount" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.flowControlStats.acquireCount">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       The number of times this operation acquired a ticket.
      </p>
     </dd>
    </dl>
    <dl class="data">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       $currentOp.flowControlStats.acquireWaitCount
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.flowControlStats.acquireWaitCount" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.flowControlStats.acquireWaitCount">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       The number of times this operation waited to acquire a ticket.
      </p>
     </dd>
    </dl>
    <dl class="data">
     <dt>
      <code class="leafygreen-ui-1l06pbn">
       $currentOp.flowControlStats.timeAcquiringMicros
      </code>
      <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.flowControlStats.timeAcquiringMicros" title="Permalink to this definition">
       <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
        </path>
        <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
        </path>
       </svg>
       <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.flowControlStats.timeAcquiringMicros">
       </div>
      </a>
     </dt>
     <dd>
      <p class="leafygreen-ui-1kp3ins">
       The total time this operation has waited to acquire a ticket.
      </p>
     </dd>
    </dl>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.totalOperationTimeElapsed
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.totalOperationTimeElapsed" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.totalOperationTimeElapsed">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     The total time elapsed, in seconds, for the current
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/sharding-reshard-a-collection/#std-label-sharding-resharding">
      resharding
operation
     </a>
     . The time is set to 0 when a new
resharding operation starts.
    </p>
    <p class="leafygreen-ui-1kp3ins">
     Only present if a resharding operation is taking place.
    </p>
    <div>
     <p>
      <em>
       New
       <!-- -->
       in version
       <!-- -->
       5.0
      </em>
      .
     </p>
    </div>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.remainingOperationTimeEstimated
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.remainingOperationTimeEstimated" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.remainingOperationTimeEstimated">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     The estimated time remaining in seconds for the current
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/sharding-reshard-a-collection/#std-label-sharding-resharding">
      resharding operation
     </a>
     . The time is set to
-1 when a new resharding operation starts.
    </p>
    <p class="leafygreen-ui-1kp3ins">
     Only present when a resharding operation is taking place. This
field may not be present if an estimate cannot not be computed.
    </p>
    <div>
     <p>
      <em>
       New
       <!-- -->
       in version
       <!-- -->
       5.0
      </em>
      .
     </p>
    </div>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.approxDocumentsToCopy
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.approxDocumentsToCopy" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.approxDocumentsToCopy">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     The approximate number of documents to be copied from the donor
shards to the recipient shards during the
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/sharding-reshard-a-collection/#std-label-sharding-resharding">
      resharding operation
     </a>
     . This number is an estimate that is set at the
beginning of the resharding operation and does not change after it
has been set. The number is set to 0 when a new resharding operation
starts. It is possible for
     <code class="leafygreen-ui-1l06pbn">
      $currentOp.documentsCopied
     </code>
     and
     <code class="leafygreen-ui-1l06pbn">
      $currentOp.bytesCopied
     </code>
     to end up exceeding
     <code class="leafygreen-ui-1l06pbn">
      $currentOp.approxDocumentsToCopy
     </code>
     and
     <code class="leafygreen-ui-1l06pbn">
      $currentOp.approxBytesToCopy
     </code>
     , respectively, if the
post-resharding data distribution is not perfectly uniform.
    </p>
    <p class="leafygreen-ui-1kp3ins">
     Only present on a recipient shard when a resharding operation is
taking place.
    </p>
    <div>
     <p>
      <em>
       New
       <!-- -->
       in version
       <!-- -->
       5.0
      </em>
      .
     </p>
    </div>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.documentsCopied
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.documentsCopied" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.documentsCopied">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     The number of documents copied form donor shards to recipient shards
during the
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/sharding-reshard-a-collection/#std-label-sharding-resharding">
      resharding operation
     </a>
     . The
number is set to 0 when a new resharding operation starts.
    </p>
    <p class="leafygreen-ui-1kp3ins">
     Only present on a recipient shard when a resharding operation is
taking place.
    </p>
    <div>
     <p>
      <em>
       New
       <!-- -->
       in version
       <!-- -->
       5.0
      </em>
      .
     </p>
    </div>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.approxBytesToCopy
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.approxBytesToCopy" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.approxBytesToCopy">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     The approximate number of bytes to be copied from the donor shards to
the recipient shards during the
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/sharding-reshard-a-collection/#std-label-sharding-resharding">
      resharding operation
     </a>
     . This number is an estimate that is set at the
beginning of the resharding operation and does not change after it
has been set. The number is set to 0 when a new resharding operation
starts. It is possible for
     <code class="leafygreen-ui-1l06pbn">
      $currentOp.documentsCopied
     </code>
     and
     <code class="leafygreen-ui-1l06pbn">
      $currentOp.bytesCopied
     </code>
     to end up exceeding
     <code class="leafygreen-ui-1l06pbn">
      $currentOp.approxDocumentsToCopy
     </code>
     and
     <code class="leafygreen-ui-1l06pbn">
      $currentOp.approxBytesToCopy
     </code>
     , respectively, if the
post-resharding data distribution is not perfectly uniform.
    </p>
    <p class="leafygreen-ui-1kp3ins">
     Only present on a recipient shard when a resharding operation is
taking place.
    </p>
    <div>
     <p>
      <em>
       New
       <!-- -->
       in version
       <!-- -->
       5.0
      </em>
      .
     </p>
    </div>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.bytesCopied
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.bytesCopied" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.bytesCopied">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     The number of bytes copied from donor shards to recipient shards
during the
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/sharding-reshard-a-collection/#std-label-sharding-resharding">
      resharding operation
     </a>
     . The
number is set to 0 when a new resharding operation starts.
    </p>
    <p class="leafygreen-ui-1kp3ins">
     Only present on a recipient shard when a resharding operation is
taking place.
    </p>
    <div>
     <p>
      <em>
       New
       <!-- -->
       in version
       <!-- -->
       5.0
      </em>
      .
     </p>
    </div>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.totalCopyTimeElapsed
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.totalCopyTimeElapsed" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.totalCopyTimeElapsed">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     The total elapsed time, in seconds, for ongoing data copy tasks from
donor shards to recipient shards for the current resharding
operation. The time is set to 0 when a new
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/sharding-reshard-a-collection/#std-label-sharding-resharding">
      resharding operation
     </a>
     starts.
    </p>
    <p class="leafygreen-ui-1kp3ins">
     Only present on a recipient shard when a resharding operation is
taking place.
    </p>
    <div>
     <p>
      <em>
       New
       <!-- -->
       in version
       <!-- -->
       5.0
      </em>
      .
     </p>
    </div>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.oplogEntriesFetched
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.oplogEntriesFetched" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.oplogEntriesFetched">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     The number of entries fetched from the
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/glossary/#std-term-oplog">
      oplog
     </a>
     for the current
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/sharding-reshard-a-collection/#std-label-sharding-resharding">
      resharding operation
     </a>
     . The number is set
to 0 when a new resharding operation starts.
    </p>
    <p class="leafygreen-ui-1kp3ins">
     Only present on a recipient shard when a resharding operation is
taking place.
    </p>
    <div>
     <p>
      <em>
       New
       <!-- -->
       in version
       <!-- -->
       5.0
      </em>
      .
     </p>
    </div>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.oplogEntriesApplied
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.oplogEntriesApplied" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.oplogEntriesApplied">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     The number of entries applied to the
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/glossary/#std-term-oplog">
      oplog
     </a>
     for the current
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/sharding-reshard-a-collection/#std-label-sharding-resharding">
      resharding operation
     </a>
     . The number is set
to 0 when a new resharding operation starts.
    </p>
    <p class="leafygreen-ui-1kp3ins">
     Only present on a recipient shard when a resharding operation is
taking place.
    </p>
    <div>
     <p>
      <em>
       New
       <!-- -->
       in version
       <!-- -->
       5.0
      </em>
      .
     </p>
    </div>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.totalApplyTimeElapsed
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.totalApplyTimeElapsed" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.totalApplyTimeElapsed">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     The total elapsed time, in seconds, for the apply step of the
current
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/sharding-reshard-a-collection/#std-label-sharding-resharding">
      resharding operation
     </a>
     . In the
apply step, recipient shards apply
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/glossary/#std-term-oplog">
      oplog
     </a>
     entries to modify
their data based on new incoming writes from donor shards. The time
is set to 0 when a new resharding operation starts.
    </p>
    <p class="leafygreen-ui-1kp3ins">
     Only present on a recipient shard when a resharding operation is
taking place.
    </p>
    <div>
     <p>
      <em>
       New
       <!-- -->
       in version
       <!-- -->
       5.0
      </em>
      .
     </p>
    </div>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.countWritesDuringCriticalSection
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.countWritesDuringCriticalSection" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.countWritesDuringCriticalSection">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     The number of writes performed in the critical section for the current
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/sharding-reshard-a-collection/#std-label-sharding-resharding">
      resharding operation
     </a>
     . The critical
section prevents new incoming writes to the collection currently
being resharded. The number is set to 0 when a new resharding
operation starts.
    </p>
    <p class="leafygreen-ui-1kp3ins">
     Only present on a donor shard when a resharding operation is taking
place.
    </p>
    <div>
     <p>
      <em>
       New
       <!-- -->
       in version
       <!-- -->
       5.0
      </em>
      .
     </p>
    </div>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.totalCriticalSectionTimeElapsed
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.totalCriticalSectionTimeElapsed" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.totalCriticalSectionTimeElapsed">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     The total elapsed time, in seconds, for the critical section of the
current
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/sharding-reshard-a-collection/#std-label-sharding-resharding">
      resharding operation
     </a>
     . The
critical section prevents new incoming writes to the collection
currently being resharded. The time is set to 0 when a new
resharding operation starts.
    </p>
    <p class="leafygreen-ui-1kp3ins">
     Only present on a donor shard when a resharding operation is taking
place.
    </p>
    <div>
     <p>
      <em>
       New
       <!-- -->
       in version
       <!-- -->
       5.0
      </em>
      .
     </p>
    </div>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.donorState
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.donorState" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.donorState">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     The current state of a donor shard for the
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/sharding-reshard-a-collection/#std-label-sharding-resharding">
      resharding operation
     </a>
     . The state is set to
     <code class="leafygreen-ui-1l06pbn">
      unused
     </code>
     when a new
resharding operation starts.
    </p>
    <p class="leafygreen-ui-1kp3ins">
     Only present on a donor shard when a resharding operation is taking place.
    </p>
    <div class="leafygreen-ui-skkc39" tabindex="0">
     <table class="leafygreen-ui-hr8lsv">
      <colgroup>
       <col style="width:20%"/>
       <col style="width:80%"/>
      </colgroup>
      <thead class="leafygreen-ui-a9ho40">
       <tr data-testid="leafygreen-ui-header-row">
        <th class="leafygreen-ui-1trtg6r" role="columnheader" scope="col">
         <div class="leafygreen-ui-ui0te9">
          <div>
           State
          </div>
         </div>
        </th>
        <th class="leafygreen-ui-13uteka" role="columnheader" scope="col">
         <div class="leafygreen-ui-ui0te9">
          <div>
           Description
          </div>
         </div>
        </th>
       </tr>
      </thead>
      <tbody>
       <tr class="leafygreen-ui-15dvrnp">
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           <code class="leafygreen-ui-1l06pbn">
            unused
           </code>
          </div>
         </div>
        </td>
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           The resharding operation is about to start or recovering from
a primary failover.
          </div>
         </div>
        </td>
       </tr>
       <tr class="leafygreen-ui-15dvrnp">
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           <code class="leafygreen-ui-1l06pbn">
            preparing-to-donate
           </code>
          </div>
         </div>
        </td>
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           The donor shard is preparing to donate data to the recipient
shards.
          </div>
         </div>
        </td>
       </tr>
       <tr class="leafygreen-ui-15dvrnp">
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           <code class="leafygreen-ui-1l06pbn">
            donating-initial-data
           </code>
          </div>
         </div>
        </td>
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           The donor shard is donating data to the recipient shards.
          </div>
         </div>
        </td>
       </tr>
       <tr class="leafygreen-ui-15dvrnp">
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           <code class="leafygreen-ui-1l06pbn">
            donating-oplog-entries
           </code>
          </div>
         </div>
        </td>
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           The donor shard is donating
           <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/glossary/#std-term-oplog">
            oplog
           </a>
           entries to the
recipient shards.
          </div>
         </div>
        </td>
       </tr>
       <tr class="leafygreen-ui-15dvrnp">
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           <code class="leafygreen-ui-1l06pbn">
            preparing-to-block-writes
           </code>
          </div>
         </div>
        </td>
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           The donor shard is about to prevent new incoming write
operations to the collection that is being resharded.
          </div>
         </div>
        </td>
       </tr>
       <tr class="leafygreen-ui-15dvrnp">
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           <code class="leafygreen-ui-1l06pbn">
            error
           </code>
          </div>
         </div>
        </td>
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           An error occurred during the resharding operation.
          </div>
         </div>
        </td>
       </tr>
       <tr class="leafygreen-ui-15dvrnp">
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           <code class="leafygreen-ui-1l06pbn">
            blocking-writes
           </code>
          </div>
         </div>
        </td>
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           The donor shard is preventing new incoming write operations
and the donor shard has notified all recipient shards that new
incoming writes are prevented.
          </div>
         </div>
        </td>
       </tr>
       <tr class="leafygreen-ui-15dvrnp">
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           <code class="leafygreen-ui-1l06pbn">
            done
           </code>
          </div>
         </div>
        </td>
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           The donor shard has dropped the old sharded collection and the
resharding operation is complete.
          </div>
         </div>
        </td>
       </tr>
      </tbody>
     </table>
    </div>
    <div>
     <p>
      <em>
       New
       <!-- -->
       in version
       <!-- -->
       5.0
      </em>
      .
     </p>
    </div>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.recipientState
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.recipientState" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.recipientState">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     The current state of a recipient shard for a
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/sharding-reshard-a-collection/#std-label-sharding-resharding">
      resharding
operation
     </a>
     . The state is set to
     <code class="leafygreen-ui-1l06pbn">
      unused
     </code>
     when
a new resharding operation starts.
    </p>
    <p class="leafygreen-ui-1kp3ins">
     Only present on a donor shard when a resharding operation is taking
place.
    </p>
    <div class="leafygreen-ui-skkc39" tabindex="0">
     <table class="leafygreen-ui-hr8lsv">
      <colgroup>
       <col style="width:20%"/>
       <col style="width:80%"/>
      </colgroup>
      <thead class="leafygreen-ui-a9ho40">
       <tr data-testid="leafygreen-ui-header-row">
        <th class="leafygreen-ui-1trtg6r" role="columnheader" scope="col">
         <div class="leafygreen-ui-ui0te9">
          <div>
           State
          </div>
         </div>
        </th>
        <th class="leafygreen-ui-13uteka" role="columnheader" scope="col">
         <div class="leafygreen-ui-ui0te9">
          <div>
           Description
          </div>
         </div>
        </th>
       </tr>
      </thead>
      <tbody>
       <tr class="leafygreen-ui-15dvrnp">
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           <code class="leafygreen-ui-1l06pbn">
            unused
           </code>
          </div>
         </div>
        </td>
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           The resharding operation is about to start or recovering from
a primary failover.
          </div>
         </div>
        </td>
       </tr>
       <tr class="leafygreen-ui-15dvrnp">
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           <code class="leafygreen-ui-1l06pbn">
            awaiting-fetch-timestamp
           </code>
          </div>
         </div>
        </td>
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           The recipient shard is waiting for the donor shards to be
prepared to donate their data.
          </div>
         </div>
        </td>
       </tr>
       <tr class="leafygreen-ui-15dvrnp">
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           <code class="leafygreen-ui-1l06pbn">
            creating-collection
           </code>
          </div>
         </div>
        </td>
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           The recipient shard is creating the new sharded collection.
          </div>
         </div>
        </td>
       </tr>
       <tr class="leafygreen-ui-15dvrnp">
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           <code class="leafygreen-ui-1l06pbn">
            cloning
           </code>
          </div>
         </div>
        </td>
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           The recipient shard is receiving data from the donor shards.
          </div>
         </div>
        </td>
       </tr>
       <tr class="leafygreen-ui-15dvrnp">
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           <code class="leafygreen-ui-1l06pbn">
            applying
           </code>
          </div>
         </div>
        </td>
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           The recipient shard is applying
           <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/glossary/#std-term-oplog">
            oplog
           </a>
           entries to
modify its copy of the data based on the new incoming writes
from donor shards.
          </div>
         </div>
        </td>
       </tr>
       <tr class="leafygreen-ui-15dvrnp">
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           <code class="leafygreen-ui-1l06pbn">
            error
           </code>
          </div>
         </div>
        </td>
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           An error occurred during the
           <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/sharding-reshard-a-collection/#std-label-sharding-resharding">
            resharding operation
            <!-- -->
            .
           </a>
          </div>
         </div>
        </td>
       </tr>
       <tr class="leafygreen-ui-15dvrnp">
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           <code class="leafygreen-ui-1l06pbn">
            strict-consistency
           </code>
          </div>
         </div>
        </td>
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           The recipient shard has all data changes stored in a temporary
collection.
          </div>
         </div>
        </td>
       </tr>
       <tr class="leafygreen-ui-15dvrnp">
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           <code class="leafygreen-ui-1l06pbn">
            done
           </code>
          </div>
         </div>
        </td>
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           The resharding operation is complete.
          </div>
         </div>
        </td>
       </tr>
      </tbody>
     </table>
    </div>
    <div>
     <p>
      <em>
       New
       <!-- -->
       in version
       <!-- -->
       5.0
      </em>
      .
     </p>
    </div>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.coordinatorState
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.coordinatorState" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.coordinatorState">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     The state of the resharding coordinator for the current
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/sharding-reshard-a-collection/#std-label-sharding-resharding">
      resharding operation
     </a>
     . The resharding
coordinator is an operation that runs on the
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/sharded-cluster-config-servers/#std-label-sharding-config-server">
      config server
     </a>
     primary. The state is set to
     <code class="leafygreen-ui-1l06pbn">
      unused
     </code>
     when a new resharding operation starts.
    </p>
    <p class="leafygreen-ui-1kp3ins">
     Only present on the coordinating config server.
    </p>
    <div class="leafygreen-ui-skkc39" tabindex="0">
     <table class="leafygreen-ui-hr8lsv">
      <colgroup>
       <col style="width:20%"/>
       <col style="width:80%"/>
      </colgroup>
      <thead class="leafygreen-ui-a9ho40">
       <tr data-testid="leafygreen-ui-header-row">
        <th class="leafygreen-ui-1trtg6r" role="columnheader" scope="col">
         <div class="leafygreen-ui-ui0te9">
          <div>
           State
          </div>
         </div>
        </th>
        <th class="leafygreen-ui-13uteka" role="columnheader" scope="col">
         <div class="leafygreen-ui-ui0te9">
          <div>
           Description
          </div>
         </div>
        </th>
       </tr>
      </thead>
      <tbody>
       <tr class="leafygreen-ui-15dvrnp">
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           <code class="leafygreen-ui-1l06pbn">
            unused
           </code>
          </div>
         </div>
        </td>
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           The resharding operation is about to start or recovering from
a primary failover.
          </div>
         </div>
        </td>
       </tr>
       <tr class="leafygreen-ui-15dvrnp">
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           <code class="leafygreen-ui-1l06pbn">
            initializing
           </code>
          </div>
         </div>
        </td>
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           The resharding coordinator has inserted the coordinator
document into
           <code class="leafygreen-ui-1l06pbn">
            config.reshardingOperations
           </code>
           and has added
the
           <code class="leafygreen-ui-1l06pbn">
            reshardingFields
           </code>
           to the
           <code class="leafygreen-ui-1l06pbn">
            config.collections
           </code>
           entry
for the original collection.
          </div>
         </div>
        </td>
       </tr>
       <tr class="leafygreen-ui-15dvrnp">
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           <code class="leafygreen-ui-1l06pbn">
            preparing-to-donate
           </code>
          </div>
         </div>
        </td>
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           <p class="leafygreen-ui-1kp3ins">
            The resharding coordinator
           </p>
           <ul class="leafygreen-ui-rioki0">
            <li class="leafygreen-ui-d7p7b6">
             <p class="leafygreen-ui-1kp3ins">
              has created a
              <code class="leafygreen-ui-1l06pbn">
               config.collections
              </code>
              entry for the temporary
resharding collection.
             </p>
            </li>
            <li class="leafygreen-ui-d7p7b6">
             <p class="leafygreen-ui-1kp3ins">
              has inserted entries into
              <code class="leafygreen-ui-1l06pbn">
               config.chunks
              </code>
              for ranges based
on the new shard key.
             </p>
            </li>
            <li class="leafygreen-ui-d7p7b6">
             <p class="leafygreen-ui-1kp3ins">
              has inserted entries into
              <code class="leafygreen-ui-1l06pbn">
               config.tags
              </code>
              for any zones
associated with the new shard key.
             </p>
            </li>
           </ul>
           <p class="leafygreen-ui-1kp3ins">
            The coordinator informs participant shards to begin the
resharding operation. The coordinator then waits until all
donor shards have picked a
            <code class="leafygreen-ui-1l06pbn">
             minFetchTimestamp
            </code>
            and are ready
to donate.
           </p>
          </div>
         </div>
        </td>
       </tr>
       <tr class="leafygreen-ui-15dvrnp">
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           <code class="leafygreen-ui-1l06pbn">
            cloning
           </code>
          </div>
         </div>
        </td>
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           The resharding coordinator informs donor shards to donate data
to recipient shards. The coordinator waits for all recipients
to finish cloning the data from the donor.
          </div>
         </div>
        </td>
       </tr>
       <tr class="leafygreen-ui-15dvrnp">
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           <code class="leafygreen-ui-1l06pbn">
            applying
           </code>
          </div>
         </div>
        </td>
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           The resharding coordinator informs recipient shards to modify
their copies of data based on new incoming writes from donor
shards. The coordinator waits for all recipients to finish
applying
           <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/glossary/#std-term-oplog">
            oplog
           </a>
           entries.
          </div>
         </div>
        </td>
       </tr>
       <tr class="leafygreen-ui-15dvrnp">
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           <code class="leafygreen-ui-1l06pbn">
            blocking-writes
           </code>
          </div>
         </div>
        </td>
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           The resharding coordinator informs donor shards to prevent new
incoming write operations to the collection being resharded.
The coordinator then waits for all recipients to have all data
changes.
          </div>
         </div>
        </td>
       </tr>
       <tr class="leafygreen-ui-15dvrnp">
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           <code class="leafygreen-ui-1l06pbn">
            aborting
           </code>
          </div>
         </div>
        </td>
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           An unrecoverable error occurred during the resharding
operation or the
           <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/abortReshardCollection/#mongodb-dbcommand-dbcmd.abortReshardCollection">
            <code class="leafygreen-ui-1l06pbn">
             abortReshardCollection
            </code>
           </a>
           command
(or the
           <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/method/sh.abortReshardCollection/#mongodb-method-sh.abortReshardCollection">
            <code class="leafygreen-ui-1l06pbn">
             sh.abortReshardCollection()
            </code>
           </a>
           method) was run.
          </div>
         </div>
        </td>
       </tr>
       <tr class="leafygreen-ui-15dvrnp">
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           <code class="leafygreen-ui-1l06pbn">
            committing
           </code>
          </div>
         </div>
        </td>
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           The resharding coordinator removes the
           <code class="leafygreen-ui-1l06pbn">
            config.collections
           </code>
           entry for the temporary resharding collection. The coordinator
then adds the
           <code class="leafygreen-ui-1l06pbn">
            recipientFields
           </code>
           to the source collection's
entry.
          </div>
         </div>
        </td>
       </tr>
      </tbody>
     </table>
    </div>
    <div>
     <p>
      <em>
       New
       <!-- -->
       in version
       <!-- -->
       5.0
      </em>
      .
     </p>
    </div>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.opStatus
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.opStatus" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.opStatus">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     The current state of a
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/sharding-reshard-a-collection/#std-label-sharding-resharding">
      resharding operation
      <!-- -->
      .
     </a>
    </p>
    <p class="leafygreen-ui-1kp3ins">
     Only present if a resharding operation is taking place. Once the
operation has completed, the operation is removed from
     <code class="leafygreen-ui-1l06pbn">
      currentOp
     </code>
     output.
    </p>
    <div class="leafygreen-ui-skkc39" tabindex="0">
     <table class="leafygreen-ui-hr8lsv">
      <colgroup>
       <col style="width:20%"/>
       <col style="width:80%"/>
      </colgroup>
      <thead class="leafygreen-ui-a9ho40">
       <tr data-testid="leafygreen-ui-header-row">
        <th class="leafygreen-ui-1trtg6r" role="columnheader" scope="col">
         <div class="leafygreen-ui-ui0te9">
          <div>
           State
          </div>
         </div>
        </th>
        <th class="leafygreen-ui-13uteka" role="columnheader" scope="col">
         <div class="leafygreen-ui-ui0te9">
          <div>
           Description
          </div>
         </div>
        </th>
       </tr>
      </thead>
      <tbody>
       <tr class="">
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           <code class="leafygreen-ui-1l06pbn">
            actively running
           </code>
          </div>
         </div>
        </td>
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           The resharding operation is actively running.
          </div>
         </div>
        </td>
       </tr>
       <tr class="">
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           <code class="leafygreen-ui-1l06pbn">
            success
           </code>
          </div>
         </div>
        </td>
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           The resharding operation has succeeded.
          </div>
         </div>
        </td>
       </tr>
       <tr class="">
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           <code class="leafygreen-ui-1l06pbn">
            failure
           </code>
          </div>
         </div>
        </td>
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           The resharding operation has failed.
          </div>
         </div>
        </td>
       </tr>
       <tr class="">
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           <code class="leafygreen-ui-1l06pbn">
            canceled
           </code>
          </div>
         </div>
        </td>
        <td class="leafygreen-ui-1drjk7h">
         <div class="leafygreen-ui-1n4j8xf">
          <div>
           The resharding operation was canceled.
          </div>
         </div>
        </td>
       </tr>
      </tbody>
     </table>
    </div>
    <div>
     <p>
      <em>
       New
       <!-- -->
       in version
       <!-- -->
       5.0
      </em>
      .
     </p>
    </div>
   </dd>
  </dl>
  <span class="leafygreen-ui-1qnjd6d" id="std-label-currentOp-agg-query-sampling-fields">
  </span>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.collUuid
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.collUuid" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.collUuid">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     The UUID of the
     <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/command/configureQueryAnalyzer/#std-label-configureQueryAnalyzer">
      sampled collection
      <!-- -->
      .
     </a>
    </p>
    <p class="leafygreen-ui-1kp3ins">
     This field only appears on documents related to query sampling.
For details, see
     <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#std-label-sampled-queries-currentOp-stage" target="_self">
      <span>
       Sampled Queries
       <!-- -->
       .
      </span>
     </a>
    </p>
    <div>
     <p>
      <em>
       New
       <!-- -->
       in version
       <!-- -->
       7.0
      </em>
      .
     </p>
    </div>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.startTime
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.startTime" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.startTime">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     The time at which query sampling began.
    </p>
    <p class="leafygreen-ui-1kp3ins">
     This field only appears on documents related to query sampling.
For details, see
     <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#std-label-sampled-queries-currentOp-stage" target="_self">
      <span>
       Sampled Queries
       <!-- -->
       .
      </span>
     </a>
    </p>
    <div>
     <p>
      <em>
       New
       <!-- -->
       in version
       <!-- -->
       7.0
      </em>
      .
     </p>
    </div>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.samplesPerSecond
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.samplesPerSecond" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.samplesPerSecond">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     The maximum number of queries to sample per second.
    </p>
    <p class="leafygreen-ui-1kp3ins">
     Only reported when running
     <code class="leafygreen-ui-1l06pbn">
      $currentOp
     </code>
     on
     <code class="leafygreen-ui-1l06pbn">
      mongos
     </code>
     .
    </p>
    <p class="leafygreen-ui-1kp3ins">
     This field only appears on documents related to query sampling.
For details, see
     <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#std-label-sampled-queries-currentOp-stage" target="_self">
      <span>
       Sampled Queries
       <!-- -->
       .
      </span>
     </a>
    </p>
    <div>
     <p>
      <em>
       New
       <!-- -->
       in version
       <!-- -->
       7.0
      </em>
      .
     </p>
    </div>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.sampledReadsCount
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.sampledReadsCount" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.sampledReadsCount">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     The number of sampled read queries.
    </p>
    <p class="leafygreen-ui-1kp3ins">
     This field only appears on documents related to query sampling.
For details, see
     <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#std-label-sampled-queries-currentOp-stage" target="_self">
      <span>
       Sampled Queries
       <!-- -->
       .
      </span>
     </a>
    </p>
    <div>
     <p>
      <em>
       New
       <!-- -->
       in version
       <!-- -->
       7.0
      </em>
      .
     </p>
    </div>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.sampledWritesCount
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.sampledWritesCount" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.sampledWritesCount">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     The number of sampled write queries.
    </p>
    <p class="leafygreen-ui-1kp3ins">
     This field only appears on documents related to query sampling.
For details, see
     <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#std-label-sampled-queries-currentOp-stage" target="_self">
      <span>
       Sampled Queries
       <!-- -->
       .
      </span>
     </a>
    </p>
    <div>
     <p>
      <em>
       New
       <!-- -->
       in version
       <!-- -->
       7.0
      </em>
      .
     </p>
    </div>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.sampledReadsBytes
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.sampledReadsBytes" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.sampledReadsBytes">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     The size of the sampled read queries, in bytes.
    </p>
    <p class="leafygreen-ui-1kp3ins">
     On a replica set, this is reported on every
     <code class="leafygreen-ui-1l06pbn">
      mongod
     </code>
     .
    </p>
    <p class="leafygreen-ui-1kp3ins">
     On a sharded cluster, this only reported on
     <code class="leafygreen-ui-1l06pbn">
      mongod
     </code>
     with
     <code class="leafygreen-ui-1l06pbn">
      --shardsvr
     </code>
     .
    </p>
    <p class="leafygreen-ui-1kp3ins">
     This field only appears on documents related to query sampling.
For details, see
     <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#std-label-sampled-queries-currentOp-stage" target="_self">
      <span>
       Sampled Queries
       <!-- -->
       .
      </span>
     </a>
    </p>
    <div>
     <p>
      <em>
       New
       <!-- -->
       in version
       <!-- -->
       7.0
      </em>
      .
     </p>
    </div>
   </dd>
  </dl>
  <dl class="data">
   <dt>
    <code class="leafygreen-ui-1l06pbn">
     $currentOp.sampledWritesBytes
    </code>
    <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-data--currentOp.sampledWritesBytes" title="Permalink to this definition">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="mongodb-data--currentOp.sampledWritesBytes">
     </div>
    </a>
   </dt>
   <dd>
    <p class="leafygreen-ui-1kp3ins">
     The size of the sampled write queries, in bytes.
    </p>
    <p class="leafygreen-ui-1kp3ins">
     On a replica set, this is reported on every
     <code class="leafygreen-ui-1l06pbn">
      mongod
     </code>
     .
    </p>
    <p class="leafygreen-ui-1kp3ins">
     On a sharded cluster, this only reported on
     <code class="leafygreen-ui-1l06pbn">
      mongod
     </code>
     with
     <code class="leafygreen-ui-1l06pbn">
      --shardsvr
     </code>
     .
    </p>
    <p class="leafygreen-ui-1kp3ins">
     This field only appears on documents related to query sampling.
For details, see
     <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#std-label-sampled-queries-currentOp-stage" target="_self">
      <span>
       Sampled Queries
       <!-- -->
       .
      </span>
     </a>
    </p>
    <div>
     <p>
      <em>
       New
       <!-- -->
       in version
       <!-- -->
       7.0
      </em>
      .
     </p>
    </div>
   </dd>
  </dl>
 </section>
</section>
