git-svn-id: svn://db.shs.com.ru/pip@828 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -187,16 +187,16 @@ public:
|
||||
int readBinLog(int id, void * read_to, int max_size, PISystemTime * time = 0);
|
||||
|
||||
//! Returns binary log file size
|
||||
llong logSize() const {PIMutexLocker _ml(file_mutex); return file.size();}
|
||||
llong logSize() const {return log_size;}
|
||||
|
||||
//! Return position in current binlog file
|
||||
llong logPos() const {PIMutexLocker _ml(file_mutex); return file.pos();}
|
||||
llong logPos() const {return file.pos();}
|
||||
|
||||
//! Return true, if position at the end of BinLog file
|
||||
bool isEnd() const {if (isClosed()) return true; return file.isEnd();}
|
||||
|
||||
//! Returns if BinLog file is empty
|
||||
bool isEmpty() const {return (file.size() <= llong(PIBINARYLOG_SIGNATURE_SIZE + 1));}
|
||||
bool isEmpty() const {return (log_size <= llong(PIBINARYLOG_SIGNATURE_SIZE + 1));}
|
||||
|
||||
//! Returns BinLog pause status
|
||||
bool isPause() const {return is_pause;}
|
||||
@@ -303,7 +303,7 @@ private:
|
||||
bool writeFileHeader();
|
||||
bool checkFileHeader();
|
||||
BinLogRecord readRecord();
|
||||
static void parseLog(PIFile *f, BinLogInfo *info, PIVector<BinLogIndex> * index, PIMutex & file_mutex);
|
||||
static void parseLog(PIFile *f, BinLogInfo *info, PIVector<BinLogIndex> * index);
|
||||
void moveIndex(int i);
|
||||
PIString getLogfilePath() const;
|
||||
|
||||
@@ -316,9 +316,9 @@ private:
|
||||
PIFile file;
|
||||
BinLogRecord lastrecord;
|
||||
PISystemTime startlogtime, play_delay, split_time, pause_time;
|
||||
mutable PIMutex logmutex, pausemutex, file_mutex;
|
||||
mutable PIMutex logmutex, pausemutex;
|
||||
double play_time, play_speed;
|
||||
llong split_size;
|
||||
llong split_size, log_size;
|
||||
int write_count, split_count, default_id, current_index;
|
||||
bool is_started, is_thread_ok, is_indexed, rapid_start, is_pause;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user