mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
log0log.c Eliminate a Purify warning
buf0buf.c Fix uninitilaized flush field noticed with Purify innobase/buf/buf0buf.c: Fix uninitilaized flush field noticed with Purify innobase/log/log0log.c: Eliminate a Purify warning
This commit is contained in:
parent
3479f42807
commit
79ce69d7ea
2 changed files with 3 additions and 1 deletions
|
@ -359,6 +359,7 @@ buf_pool_create(
|
||||||
|
|
||||||
for (i = BUF_FLUSH_LRU; i <= BUF_FLUSH_LIST; i++) {
|
for (i = BUF_FLUSH_LRU; i <= BUF_FLUSH_LIST; i++) {
|
||||||
buf_pool->n_flush[i] = 0;
|
buf_pool->n_flush[i] = 0;
|
||||||
|
buf_pool->init_flush[i] = FALSE;
|
||||||
buf_pool->no_flush[i] = os_event_create(NULL);
|
buf_pool->no_flush[i] = os_event_create(NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -569,7 +569,7 @@ log_init(void)
|
||||||
ut_a(LOG_BUFFER_SIZE >= 4 * UNIV_PAGE_SIZE);
|
ut_a(LOG_BUFFER_SIZE >= 4 * UNIV_PAGE_SIZE);
|
||||||
|
|
||||||
buf = ut_malloc(LOG_BUFFER_SIZE + OS_FILE_LOG_BLOCK_SIZE);
|
buf = ut_malloc(LOG_BUFFER_SIZE + OS_FILE_LOG_BLOCK_SIZE);
|
||||||
log_sys->buf = ut_align(buf, OS_FILE_LOG_BLOCK_SIZE);
|
log_sys->buf = ut_align(buf, OS_FILE_LOG_BLOCK_SIZE);
|
||||||
|
|
||||||
log_sys->buf_size = LOG_BUFFER_SIZE;
|
log_sys->buf_size = LOG_BUFFER_SIZE;
|
||||||
log_sys->max_buf_free = log_sys->buf_size / LOG_BUF_FLUSH_RATIO
|
log_sys->max_buf_free = log_sys->buf_size / LOG_BUF_FLUSH_RATIO
|
||||||
|
@ -613,6 +613,7 @@ log_init(void)
|
||||||
|
|
||||||
log_sys->archiving_state = LOG_ARCH_ON;
|
log_sys->archiving_state = LOG_ARCH_ON;
|
||||||
log_sys->archived_lsn = log_sys->lsn;
|
log_sys->archived_lsn = log_sys->lsn;
|
||||||
|
log_sys->next_archived_lsn = ut_dulint_zero;
|
||||||
|
|
||||||
log_sys->n_pending_archive_ios = 0;
|
log_sys->n_pending_archive_ios = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue