HRESULT DrOutputStreamManager::FinalizeSuccessfulPartitions() { DrOutputPartitionArrayRef partitionArray = DrNew DrOutputPartitionArray(m_vertices->Size()); int i; for (i=0; i<m_vertices->Size(); ++i) { partitionArray[i] = m_vertices[i]->FinalizeVersions(); } return m_stream->FinalizeSuccessfulPartitions(partitionArray); }
HRESULT DrOutputStreamManager::FinalizeSuccessfulParts(bool jobSuccess, DrStringR errorText) { DrOutputPartitionArrayRef partitionArray = DrNew DrOutputPartitionArray(m_vertices->Size()); int i; for (i=0; i<m_vertices->Size(); ++i) { // this call abandons all non-successful version. If jobSuccess==false, it will abandon // all versions partitionArray[i] = m_vertices[i]->FinalizeVersions(jobSuccess); } if (jobSuccess) { return m_stream->FinalizeSuccessfulParts(partitionArray, errorText); } else { return m_stream->DiscardFailedStream(errorText); } }