summaryrefslogtreecommitdiff
path: root/storage/xtradb/srv
diff options
context:
space:
mode:
authorMichael Widenius <monty@askmonty.org>2011-02-23 11:22:56 +0200
committerMichael Widenius <monty@askmonty.org>2011-02-23 11:22:56 +0200
commit1c23091c4ecc23100a6fe42288819cf4d5dc0b5b (patch)
treedb09f3c0fa94cc3151b0b50e57008e361608aa98 /storage/xtradb/srv
parente079f3c84a24e67f2da3ae0b0c338d5b79dc9516 (diff)
downloadmariadb-git-1c23091c4ecc23100a6fe42288819cf4d5dc0b5b.tar.gz
Fixed build failures
- Removed references to deleted files - If we link staticly, check for static zlib - This should fix the problem with 'no -lz found' link error - Fixed build failure on window (Patch from Wlad) - Fixed build problem with federatedx when using -Werror BUILD/Makefile.am: Remove removed file config/ac-macros/zlib.m4: If we compile with --all-static, test that we have a static libz libmysqld/CMakeLists.txt: Fix for build error on windows mysql-test/suite/pbxt/r/key_cache.result: Updated result mysql-test/suite/pbxt/t/key_cache.test: Fixed not updated test case sql/CMakeLists.txt: Fix for build error on windows storage/federatedx/Makefile.am: Don't use CFLAGS to compile C++ programs storage/pbxt/src/lock_xt.cc: Fixed compiler warning about using uninitialized b2 storage/xtradb/buf/buf0buf.c: Fixed wrong printf storage/xtradb/srv/srv0srv.c: Fixed assignment of different width and test with different sign/unsigned
Diffstat (limited to 'storage/xtradb/srv')
-rw-r--r--storage/xtradb/srv/srv0srv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/xtradb/srv/srv0srv.c b/storage/xtradb/srv/srv0srv.c
index 9602a958faf..3cfdae6f70d 100644
--- a/storage/xtradb/srv/srv0srv.c
+++ b/storage/xtradb/srv/srv0srv.c
@@ -3083,8 +3083,8 @@ retry_flush_batch:
blocks_sum += blocks_num;
}
- n_flush = blocks_sum * (lsn - lsn_old) / log_sys->max_modified_age_async;
- if (flushed_blocks_sum > n_pages_flushed_prev) {
+ n_flush = (lint) (blocks_sum * (lsn - lsn_old) / log_sys->max_modified_age_async);
+ if ((ulint) flushed_blocks_sum > n_pages_flushed_prev) {
n_flush -= (flushed_blocks_sum - n_pages_flushed_prev);
}