5 #include "cvmfs_config.h"
18 LoadReturn SimpleCatalogManager::GetNewRootCatalogContext(
40 const string url = stratum0_ +
"/data/" + effective_hash.
MakePath();
44 FILE *fcatalog =
CreateTempFile(dir_temp_ +
"/catalog", 0666,
"w", &tmp);
53 &effective_hash, &filesink);
71 Catalog *new_catalog =
new Catalog(mountpoint, catalog_hash, parent_catalog);
72 if (manage_catalog_files_) {
FILE * CreateTempFile(const std::string &path_prefix, const int mode, const char *open_flags, std::string *final_path)
assert((mem||(size==0))&&"Out Of Memory")
void SetMountpoint(const PathString &mountpoint)
const char * Code2Ascii(const Failures error)
const char kSuffixCatalog
void TakeDatabaseFileOwnership()
void SetRootCtlgLocation(RootCatalogLocation root_ctlg_location)
std::string * GetSqlitePathPtr()
ShortString< kDefaultMaxPath, 0 > PathString
void SetHash(shash::Any hash)
std::string MakePath() const
void SetSqlitePath(const std::string &sqlite_path)