binary log improvements
This commit is contained in:
@@ -76,6 +76,7 @@ public:
|
||||
//! @brief Struct contains position, ID and timestamp of record in file
|
||||
struct PIP_EXPORT BinLogIndex {
|
||||
int id;
|
||||
int data_size;
|
||||
llong pos;
|
||||
PISystemTime timestamp;
|
||||
};
|
||||
@@ -236,6 +237,9 @@ public:
|
||||
//! Return if current binlog file is indexed
|
||||
bool isIndexed() {return is_indexed;}
|
||||
|
||||
//! Find nearest record of time \"time\". Returns -1 if not indexed or time less than first record
|
||||
int posForTime(const PISystemTime & time);
|
||||
|
||||
//! Go to record #index
|
||||
void seekTo(int rindex);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user