arangod/Transaction/Manager.cpp
// return the set of failed transactions
return the set of failed transactions
return the set of failed transactions
std::unordered_set<TRI_voc_tid_t> Manager::getFailedTransactions() const {
  std::unordered_set<TRI_voc_tid_t> failedTransactions;
  {
    WRITE_LOCKER(allTransactionsLocker, _allTransactionsLock);
    for (size_t bucket = 0; bucket < numBuckets; ++bucket) {
      READ_LOCKER(locker, _transactions[bucket]._lock);
      for (auto const& it : _transactions[bucket]._failedTransactions) {
        failedTransactions.emplace(it);
      }
    }
  }
  return failedTransactions;
}
std :: unordered_set < TRI_voc_tid_t > Manager :: getFailedTransactions ( ) const { std :: unordered_set < TRI_voc_tid_t > failedTransactions ; { WRITE_LOCKER ( allTransactionsLocker , _allTransactionsLock ) ; for ( size_t bucket = 0 ; bucket < numBuckets ; ++ bucket ) { READ_LOCKER ( locker , _transactions [ bucket ] . _lock ) ; for ( auto const & it : _transactions [ bucket ] . _failedTransactions ) { failedTransactions . emplace ( it ) ; } } } return failedTransactions ; }
return the set of failed transactions
return the set of failed transactions