Definition at line 426 of file Database.h. References Impala::Util::IOBufferFile::FileExists(), ILOG_DEBUG, ILOG_ERROR, and mOverride. Referenced by GetWritableFile(). 00428 { 00429 if (begin == end) 00430 { 00431 ILOG_ERROR("GetWritableFile: no search path"); 00432 return String(""); 00433 } 00434 String path = *begin + "/" + file; 00435 ILOG_DEBUG("GetWritableFile: trying " << path); 00436 if (IOBufferFile::FileExists(path)) 00437 { 00438 if (! mOverride) 00439 { 00440 if (!silent) 00441 ILOG_ERROR(path << " already exists, will not override!"); 00442 return String(""); 00443 } 00444 } 00445 return path; 00446 }
Here is the call graph for this function:
|