Definition at line 196 of file RgbDataSrcInfo.h. References GetInfoFilePath(), Impala::Util::Database::GetIOBuffer(), Impala::Persistency::File::GetReadBuffer(), Impala::Persistency::File::GetWriteBuffer(), ILOG_DEBUG, ILOG_ERROR, mDb, mInfoPath, mLoc, and Impala::Util::IOBuffer::Valid(). Referenced by ReadInfo(), and WriteInfo(). 00197 { 00198 String fname = GetInfoFilePath(toWrite, silent); 00199 if (fname.empty()) 00200 { 00201 if (!silent) 00202 ILOG_ERROR("Unable to determine info file name!"); 00203 return 0; 00204 } 00205 00206 //Util::IOBuffer* buf=db.GetIOBuffer(fname, !toWrite, false, "tmp"); 00207 String tmpFile = (toWrite) ? "tmp" : ""; 00208 #ifndef REPOSITORY_USED // Here comes the deprecated stuff 00209 Util::IOBuffer* buf = mDb->GetIOBuffer(fname, !toWrite, false, tmpFile); 00210 #else // REPOSITORY_USED 00211 typedef Persistency::RepositoryInFileSystem RepFS; 00212 Persistency::File file = RepFS::GetInstance().GetFile(mLoc, "", fname, 00213 toWrite, false); 00214 Util::IOBuffer* buf = (toWrite) ? file.GetWriteBuffer() 00215 : file.GetReadBuffer(); 00216 #endif // REPOSITORY_USED 00217 00218 if(!buf) 00219 { 00220 ILOG_DEBUG("Invalid File! "<<mInfoPath); 00221 return 0; 00222 } 00223 00224 if(!buf->Valid()) 00225 { 00226 ILOG_DEBUG("Invalid File! "<<mInfoPath); 00227 delete buf; 00228 return 0; 00229 } 00230 00231 return buf; 00232 }
Here is the call graph for this function:
|