1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-07 03:22:57 +03:00

clang format apply

This commit is contained in:
Leonid Fedorov
2022-02-11 12:24:40 +00:00
parent 509f005be7
commit 7c808317dc
1367 changed files with 394342 additions and 413129 deletions

View File

@@ -14,7 +14,7 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301, USA. */
#ifndef SMDATAFILE_H_
#define SMDATAFILE_H_
@@ -23,39 +23,38 @@
#include "IDBDataFile.h"
#include "SMComm.h"
namespace idbdatafile
namespace idbdatafile
{
class SMDataFile : public IDBDataFile
{
public:
virtual ~SMDataFile();
public:
virtual ~SMDataFile();
ssize_t pread(void* ptr, off64_t offset, size_t count);
ssize_t read(void* ptr, size_t count);
ssize_t write(const void* ptr, size_t count);
int seek(off64_t offset, int whence);
int truncate(off64_t length);
int fallocate(int mode, off64_t offset, off64_t length);
off64_t size();
off64_t tell();
int flush();
time_t mtime();
int close();
// for testing only
SMDataFile(const char *fname, int openmode, size_t fake_size);
private:
SMDataFile();
SMDataFile(const char *fname, int openmode, const struct stat &);
off64_t position;
int openmode;
SMComm *comm;
friend class SMFileFactory;
ssize_t pread(void* ptr, off64_t offset, size_t count);
ssize_t read(void* ptr, size_t count);
ssize_t write(const void* ptr, size_t count);
int seek(off64_t offset, int whence);
int truncate(off64_t length);
int fallocate(int mode, off64_t offset, off64_t length);
off64_t size();
off64_t tell();
int flush();
time_t mtime();
int close();
// for testing only
SMDataFile(const char* fname, int openmode, size_t fake_size);
private:
SMDataFile();
SMDataFile(const char* fname, int openmode, const struct stat&);
off64_t position;
int openmode;
SMComm* comm;
friend class SMFileFactory;
};
}
} // namespace idbdatafile
#endif