git-svn-id: svn://db.shs.com.ru/pip@586 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5

This commit is contained in:
2017-12-22 14:49:04 +00:00
parent 50be539140
commit 39d35731a1
6 changed files with 10 additions and 10 deletions

View File

@@ -31,7 +31,7 @@ static const uchar binlog_sig[] = {'B','I','N','L','O','G'};
}
#define PIBINARYLOG_SIGNATURE_SIZE sizeof(__S__PIBinaryLog::binlog_sig)
/// TODO: Create static functions to split and join binlog files
/// TODO: Create static functions to join binlog files
/// TODO: Create functions to insert and delete records
class PIBinaryLog: public PIIODevice
{
@@ -223,7 +223,7 @@ public:
BinLogInfo logInfo() const {if (is_indexed) return binfo; return getLogInfo(path());}
//! Get binlog index \a BinLogIndex, need \a createIndex before getting index
const PIVector<BinLogIndex> & logIndex() const {return index;} /// TODO: Think about index positions
const PIVector<BinLogIndex> & logIndex() const {return index;}
//! Create index of current binlog file
bool createIndex();
@@ -238,7 +238,7 @@ public:
bool seek(llong filepos);
//! Get current record index (position record in file)
int pos() const {if (is_indexed) return current_index; return -1;} /// TODO: Think about index positions
int pos() const {if (is_indexed) return current_index; return -1;}
//! \handlers
//! \{
@@ -266,7 +266,7 @@ public:
EVENT(fileEnd)
EVENT(fileError)
EVENT1(newFile, const PIString &, filename)
EVENT1(posChanged, int, pos) /// TODO: Think about index positions
EVENT1(posChanged, int, pos)
//! Get binlog info and statistic
static BinLogInfo getLogInfo(const PIString & path);