diff options
author | Anurag Shekhar <anurag.shekhar@sun.com> | 2009-04-08 16:45:43 +0530 |
---|---|---|
committer | Anurag Shekhar <anurag.shekhar@sun.com> | 2009-04-08 16:45:43 +0530 |
commit | dd0a6eb230686de05429770464c68a9337dadec0 (patch) | |
tree | 0715decb9da14ff3976f62cdd3dd6be58b14cfe2 /myisam | |
parent | 55a149f29d8621cf7a3ab69513a78f0e15b7725a (diff) | |
download | mariadb-git-dd0a6eb230686de05429770464c68a9337dadec0.tar.gz |
Bug #43950 myisamchk shows negative value for 'Max keyfile length'
While printing the Max keyfile length 'llstr' call was used which
was treating the max_key_file_length as negative.
Changing this to ullstr fixes the problem.
myisamchk output will differ in 32 bit and 64 bit Operating systems
so its not possible to have test case for this bug.
myisam/myisamchk.c:
Replaced llstr by ullstr, while converting
share->base.max_key_file_length-1 to string.
Diffstat (limited to 'myisam')
-rw-r--r-- | myisam/myisamchk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/myisam/myisamchk.c b/myisam/myisamchk.c index 29fb2ea1a60..b1a61f2f373 100644 --- a/myisam/myisamchk.c +++ b/myisam/myisamchk.c @@ -1311,7 +1311,7 @@ static void descript(MI_CHECK *param, register MI_INFO *info, my_string name) share->base.max_key_file_length != HA_OFFSET_ERROR) printf("Max datafile length: %13s Max keyfile length: %13s\n", llstr(share->base.max_data_file_length-1,llbuff), - llstr(share->base.max_key_file_length-1,llbuff2)); + ullstr(share->base.max_key_file_length - 1, llbuff2)); } } |