OmniSciDB  a987f07e93
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
File_Namespace::anonymous_namespace{FileMgr.cpp} Namespace Reference

Functions

bool is_compaction_status_file (const std::string &file_name)
 
bool is_metadata_file (size_t file_size, size_t page_size, size_t metadata_page_size, size_t num_pages_per_metadata_file)
 

Function Documentation

bool File_Namespace::anonymous_namespace{FileMgr.cpp}::is_compaction_status_file ( const std::string &  file_name)

Definition at line 189 of file FileMgr.cpp.

References File_Namespace::FileMgr::COPY_PAGES_STATUS, File_Namespace::FileMgr::DELETE_EMPTY_FILES_STATUS, and File_Namespace::FileMgr::UPDATE_PAGE_VISIBILITY_STATUS.

Referenced by File_Namespace::FileMgr::openFiles().

189  {
190  return (file_name == FileMgr::COPY_PAGES_STATUS ||
191  file_name == FileMgr::UPDATE_PAGE_VISIBILITY_STATUS ||
192  file_name == FileMgr::DELETE_EMPTY_FILES_STATUS);
193 }

+ Here is the caller graph for this function:

bool File_Namespace::anonymous_namespace{FileMgr.cpp}::is_metadata_file ( size_t  file_size,
size_t  page_size,
size_t  metadata_page_size,
size_t  num_pages_per_metadata_file 
)

Definition at line 328 of file FileMgr.cpp.

Referenced by File_Namespace::FileMgr::setDataAndMetadataFileStats().

331  {
332  return (file_size == (metadata_page_size * num_pages_per_metadata_file) &&
333  page_size == metadata_page_size);
334 }
size_t file_size(const int fd)
Definition: heavyai_fs.cpp:33

+ Here is the caller graph for this function: