void IndexBarrelKeeper::waitCommit() { FX_LOG(INFO, "Waiting last commit..."); forceCommit(); //Wait until all documents committed to file system m_pCommitScheduler->waitCommit(); m_pInMemBarrelMerger.reset(); }
//Called when we are suppose to update svn void FuseTracker::updateSVN() { //Increate my counter if it should be updated if ( Timer_Commit_Started && Timer_Count < TIMER_COUNT_MAX ) Timer_Count++; //If my timer count is too big, issue and svn update if ( Timer_Count >= TIMER_COUNT_MAX && Thread_Idle ) forceCommit(); }