Skip to content

Commit fe7c2ac

Browse files
author
Sujatha Sivakumar
committed
merge from 5.5 to 5.6
2 parents e953d8e + f9e6613 commit fe7c2ac

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

mysys/mf_iocache.c

+6-1
Original file line numberDiff line numberDiff line change
@@ -1535,8 +1535,13 @@ int _my_b_get(IO_CACHE *info)
15351535
int _my_b_write(register IO_CACHE *info, const uchar *Buffer, size_t Count)
15361536
{
15371537
size_t rest_length,length;
1538+
my_off_t pos_in_file= info->pos_in_file;
15381539

1539-
if (info->pos_in_file+info->buffer_length > info->end_of_file)
1540+
DBUG_EXECUTE_IF("simulate_huge_load_data_file",
1541+
{
1542+
pos_in_file=5000000000;
1543+
});
1544+
if (pos_in_file+info->buffer_length > info->end_of_file)
15401545
{
15411546
my_errno=errno=EFBIG;
15421547
return info->error = -1;

sql/binlog.cc

+6-6
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ class binlog_cache_data
223223
public:
224224

225225
binlog_cache_data(bool trx_cache_arg,
226-
ulong max_binlog_cache_size_arg,
226+
my_off_t max_binlog_cache_size_arg,
227227
ulong *ptr_binlog_cache_use_arg,
228228
ulong *ptr_binlog_cache_disk_use_arg)
229229
: m_pending(0), saved_max_binlog_cache_size(max_binlog_cache_size_arg),
@@ -452,7 +452,7 @@ class binlog_cache_data
452452
is configured. This corresponds to either
453453
. max_binlog_cache_size or max_binlog_stmt_cache_size.
454454
*/
455-
ulong saved_max_binlog_cache_size;
455+
my_off_t saved_max_binlog_cache_size;
456456

457457
/*
458458
Stores a pointer to the status variable that keeps track of the in-memory
@@ -478,7 +478,7 @@ class binlog_stmt_cache_data
478478
{
479479
public:
480480
binlog_stmt_cache_data(bool trx_cache_arg,
481-
ulong max_binlog_cache_size_arg,
481+
my_off_t max_binlog_cache_size_arg,
482482
ulong *ptr_binlog_cache_use_arg,
483483
ulong *ptr_binlog_cache_disk_use_arg)
484484
: binlog_cache_data(trx_cache_arg,
@@ -517,7 +517,7 @@ class binlog_trx_cache_data : public binlog_cache_data
517517
{
518518
public:
519519
binlog_trx_cache_data(bool trx_cache_arg,
520-
ulong max_binlog_cache_size_arg,
520+
my_off_t max_binlog_cache_size_arg,
521521
ulong *ptr_binlog_cache_use_arg,
522522
ulong *ptr_binlog_cache_disk_use_arg)
523523
: binlog_cache_data(trx_cache_arg,
@@ -605,10 +605,10 @@ class binlog_trx_cache_data : public binlog_cache_data
605605

606606
class binlog_cache_mngr {
607607
public:
608-
binlog_cache_mngr(ulong max_binlog_stmt_cache_size_arg,
608+
binlog_cache_mngr(my_off_t max_binlog_stmt_cache_size_arg,
609609
ulong *ptr_binlog_stmt_cache_use_arg,
610610
ulong *ptr_binlog_stmt_cache_disk_use_arg,
611-
ulong max_binlog_cache_size_arg,
611+
my_off_t max_binlog_cache_size_arg,
612612
ulong *ptr_binlog_cache_use_arg,
613613
ulong *ptr_binlog_cache_disk_use_arg)
614614
: stmt_cache(FALSE, max_binlog_stmt_cache_size_arg,

0 commit comments

Comments
 (0)