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

WiredTigerRecordStore::insertRecord doesn't need to use shared_array

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: 3.0.0-rc8
    • Fix Version/s: 3.1.6
    • Component/s: WiredTiger
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Quint Iteration 6

      Description

      buf isn't shared so scoped_array can be used in place of shared_array and avoid the overhead from reference counting.

      StatusWith<RecordId>
      WiredTigerRecordStore::insertRecord( OperationContext* txn,
      const DocWriter* doc,
      bool enforceQuota )

      { const int len = doc->documentSize(); boost::shared_array<char> buf( new char[len] ); doc->writeDocument( buf.get() ); return insertRecord( txn, buf.get(), len, enforceQuota ); }

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: