Commit 25f6fba4 authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

addresses #1213

fix compiler warnings

git-svn-id: file:///svn/mysql/tokudb-engine/src@6737 c7de825b-a66e-492c-adef-691d508d4ae1
parent 7903feb1
...@@ -229,7 +229,7 @@ static int tokudb_init_func(void *p) { ...@@ -229,7 +229,7 @@ static int tokudb_init_func(void *p) {
} }
if (tokudb_cache_size) { if (tokudb_cache_size) {
DBUG_PRINT("info", ("tokudb_cache_size: %lld\n", tokudb_cache_size)); DBUG_PRINT("info", ("tokudb_cache_size: %lld\n", tokudb_cache_size));
r = db_env->set_cachesize(db_env, tokudb_cache_size / (1024 * 1024L * 1024L), tokudb_cache_size % (1024L * 1024L * 1024L), 1); r = db_env->set_cachesize(db_env, (u_int32_t)(tokudb_cache_size >> 30), (u_int32_t)(tokudb_cache_size % (1024L * 1024L * 1024L)), 1);
if (r) { if (r) {
DBUG_PRINT("info", ("set_cachesize %d\n", r)); DBUG_PRINT("info", ("set_cachesize %d\n", r));
goto error; goto error;
...@@ -1522,7 +1522,7 @@ bool ha_tokudb::has_auto_increment_flag(uint* index) { ...@@ -1522,7 +1522,7 @@ bool ha_tokudb::has_auto_increment_flag(uint* index) {
// //
// helper function to write a piece of metadata in to status.tokudb // helper function to write a piece of metadata in to status.tokudb
// //
int ha_tokudb::write_metadata(DB* db, HA_METADATA_KEY curr_key_data, void* data, ulonglong size ){ int ha_tokudb::write_metadata(DB* db, HA_METADATA_KEY curr_key_data, void* data, uint size ){
int error; int error;
DBT key; DBT key;
DBT value; DBT value;
...@@ -4256,7 +4256,7 @@ int ha_tokudb::rename_table(const char *from, const char *to) { ...@@ -4256,7 +4256,7 @@ int ha_tokudb::rename_table(const char *from, const char *to) {
/// QQQ why divide by 3 /// QQQ why divide by 3
double ha_tokudb::scan_time() { double ha_tokudb::scan_time() {
TOKUDB_DBUG_ENTER("ha_tokudb::scan_time"); TOKUDB_DBUG_ENTER("ha_tokudb::scan_time");
double ret_val = stats.records / 3; double ret_val = (double)stats.records / 3;
DBUG_RETURN(ret_val); DBUG_RETURN(ret_val);
} }
...@@ -4469,7 +4469,7 @@ cleanup: ...@@ -4469,7 +4469,7 @@ cleanup:
tmp_cursor->c_close(tmp_cursor); tmp_cursor->c_close(tmp_cursor);
tmp_cursor = NULL; tmp_cursor = NULL;
} }
TOKUDB_DBUG_RETURN(ret_val); DBUG_RETURN(ret_val);
} }
......
...@@ -202,7 +202,7 @@ private: ...@@ -202,7 +202,7 @@ private:
int acquire_table_lock (DB_TXN* trans, TABLE_LOCK_TYPE lt); int acquire_table_lock (DB_TXN* trans, TABLE_LOCK_TYPE lt);
int estimate_num_rows(DB* db, u_int64_t* num_rows); int estimate_num_rows(DB* db, u_int64_t* num_rows);
bool has_auto_increment_flag(uint* index); bool has_auto_increment_flag(uint* index);
int write_metadata(DB* db, HA_METADATA_KEY curr_key_data, void* data, ulonglong size ); int write_metadata(DB* db, HA_METADATA_KEY curr_key_data, void* data, uint size );
int update_max_auto_inc(DB* db, ulonglong val); int update_max_auto_inc(DB* db, ulonglong val);
int write_auto_inc_create(DB* db, ulonglong val); int write_auto_inc_create(DB* db, ulonglong val);
void init_auto_increment(); void init_auto_increment();
......
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