void check_counts_nodes() { // make sure they all have the same count if (!( (node_ids.count() == node_positions.count()) && (node_ids.count() == node_cs.count()) && (node_ids.count() == node_ver.count()) )) { cerr << "current id " << current_id << endl; cerr << "node counts are not aligned" << endl; cerr << "pos:" << node_positions.count() << endl; cerr << "ids: " << node_ids.count() << endl; cerr << "cs :" << node_cs.count() << endl; cerr << "ver :" << node_ver.count() << endl; // write the files node_positions.flush(); node_ids.flush(); node_cs.flush(); node_ver.flush(); exit (233); } }
void ExtentManager::flushFiles( bool sync ) { DEV Lock::assertAtLeastReadLocked( _dbname ); for( vector<DataFile*>::iterator i = _files.begin(); i != _files.end(); i++ ) { DataFile *f = *i; f->flush(sync); } }