OmniSciDB  a5dc49c757
 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 193 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().

193  {
194  return (file_name == FileMgr::COPY_PAGES_STATUS ||
195  file_name == FileMgr::UPDATE_PAGE_VISIBILITY_STATUS ||
196  file_name == FileMgr::DELETE_EMPTY_FILES_STATUS);
197 }

+ 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 325 of file FileMgr.cpp.

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

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

+ Here is the caller graph for this function: