Commit 40a7e02b authored by Vadim Tkachenko's avatar Vadim Tkachenko

sync rev 76

parent f657606d
......@@ -9834,7 +9834,7 @@ TYPELIB innobase_stats_method_typelib=
innobase_stats_method_names, NULL
};
static MYSQL_SYSVAR_ENUM(stats_method, srv_stats_method,
PLUGIN_VAR_RQCMDARG | PLUGIN_VAR_READONLY,
PLUGIN_VAR_RQCMDARG,
"Specifies how InnoDB index statistics collection code should threat NULLs. "
"Possible values of name are same to for 'myisam_stats_method'. "
"This is startup parameter.",
......
......@@ -2645,8 +2645,11 @@ loop:
bpage = UT_LIST_GET_FIRST(buf_pool->flush_list);
while (bpage != NULL) {
level += log_sys->max_checkpoint_age
- (lsn - bpage->oldest_modification);
ib_uint64_t oldest_modification = bpage->oldest_modification;
if (oldest_modification != 0) {
level += log_sys->max_checkpoint_age
- (lsn - oldest_modification);
}
bpage = UT_LIST_GET_NEXT(flush_list, bpage);
}
......@@ -2663,7 +2666,7 @@ loop:
if(bpl)
n_pages_flushed = buf_flush_batch(BUF_FLUSH_LIST,
bpl,
IB_ULONGLONG_MAX);
oldest_lsn + (lsn - lsn_old));
/*
fprintf(stderr,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment