51
51
Now they sync is done for next read.
54
void adjust_linfo_offsets(my_off_t purge_offset)
54
void adjust_linfo_offsets(my_off_t)
58
pthread_mutex_lock(&LOCK_thread_count);
59
I_List_iterator<Session> it(threads);
64
if ((linfo = tmp->current_linfo))
66
pthread_mutex_lock(&linfo->lock);
68
Index file offset can be less that purge offset only if
69
we just started reading the index file. In that case
70
we have nothing to adjust
72
if (linfo->index_file_offset < purge_offset)
73
linfo->fatal = (linfo->index_file_offset != 0);
75
linfo->index_file_offset -= purge_offset;
76
pthread_mutex_unlock(&linfo->lock);
79
pthread_mutex_unlock(&LOCK_thread_count);
83
bool log_in_use(const char* log_name)
59
bool log_in_use(const char*)
85
int log_name_len = strlen(log_name) + 1;
89
pthread_mutex_lock(&LOCK_thread_count);
90
I_List_iterator<Session> it(threads);
95
if ((linfo = tmp->current_linfo))
97
pthread_mutex_lock(&linfo->lock);
98
result = !memcmp(log_name, linfo->log_file_name, log_name_len);
99
pthread_mutex_unlock(&linfo->lock);
105
pthread_mutex_unlock(&LOCK_thread_count);
109
64
bool purge_error_message(Session* session, int res)