You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-12-15 12:09:09 +03:00
Simlified IOC::open, removed a couple debugging printouts.
This commit is contained in:
@@ -336,19 +336,13 @@ int IOCoordinator::open(const char *filename, int openmode, struct stat *out)
|
||||
if (openmode & O_CREAT)
|
||||
{
|
||||
MetadataFile meta(filename);
|
||||
meta.stat(out);
|
||||
return meta.stat(out);
|
||||
}
|
||||
else
|
||||
{
|
||||
MetadataFile meta(filename, MetadataFile::no_create_t());
|
||||
if (!meta.exists())
|
||||
{
|
||||
errno = ENOENT;
|
||||
return -1;
|
||||
return meta.stat(out);
|
||||
}
|
||||
meta.stat(out);
|
||||
}
|
||||
return 0;
|
||||
|
||||
#if 0
|
||||
int fd, err;
|
||||
|
||||
@@ -196,12 +196,8 @@ int MetadataFile::stat(struct stat *out) const
|
||||
{
|
||||
int err = ::stat(mFilename.c_str(), out);
|
||||
if (err)
|
||||
{
|
||||
cout << "Failed to stat " << mFilename << endl;
|
||||
return err;
|
||||
}
|
||||
|
||||
cout << "Got the stat for " << mFilename << endl;
|
||||
size_t totalSize = 0;
|
||||
for (auto &object : mObjects)
|
||||
totalSize += object.length;
|
||||
|
||||
Reference in New Issue
Block a user