OmniSciDB  a667adc9c8
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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 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 188 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().

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

+ 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  num_pages_per_metadata_file 
)

Definition at line 348 of file FileMgr.cpp.

References METADATA_PAGE_SIZE.

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

350  {
351  return (file_size == (METADATA_PAGE_SIZE * num_pages_per_metadata_file) &&
352  page_size == METADATA_PAGE_SIZE);
353 }
#define METADATA_PAGE_SIZE
Definition: FileBuffer.h:37
size_t file_size(const int fd)
Definition: omnisci_fs.cpp:31

+ Here is the caller graph for this function: