summaryrefslogtreecommitdiff
path: root/storage/innobase
diff options
context:
space:
mode:
authorThirunarayanan Balathandayuthapani <thirunarayanan.balathandayuth@oracle.com>2015-03-11 15:17:35 +0530
committerThirunarayanan Balathandayuthapani <thirunarayanan.balathandayuth@oracle.com>2015-03-11 15:17:35 +0530
commit48869fceba5b30ef359a1f1b660a50424ea2bfa2 (patch)
tree65205339accc2ea830285c6af8db65b4b48c6746 /storage/innobase
parent54d23eceb704af2e56ee5d8d2bbfe1beba462ce9 (diff)
downloadmariadb-git-48869fceba5b30ef359a1f1b660a50424ea2bfa2.tar.gz
Bug #20417397 MYSQL SHOW ENGINE INNODB STATUS SHOWING NEGATIVE
RESERVATION AND SIGNAL COUNT Problem: Reservation and Signal count value shows negative value for show engine innodb statement. Solution: This is happening due to counter overflow error. Reservation and Signal count values are defined as unsigned long but these variables are converted to long while printing it. Change Reservation and Signal count values as unsigned long datatype while printing it. Reviewed-by: Marko Mäkelä <marko.makela@oracle.com> Approved in bug page.
Diffstat (limited to 'storage/innobase')
-rw-r--r--storage/innobase/sync/sync0arr.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/storage/innobase/sync/sync0arr.c b/storage/innobase/sync/sync0arr.c
index f7d1af24bca..901c1e9a706 100644
--- a/storage/innobase/sync/sync0arr.c
+++ b/storage/innobase/sync/sync0arr.c
@@ -1,6 +1,6 @@
/*****************************************************************************
-Copyright (c) 1995, 2011, Oracle and/or its affiliates. All Rights Reserved.
+Copyright (c) 1995, 2015, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2008, Google Inc.
Portions of this file contain modifications contributed and copyrighted by
@@ -1027,8 +1027,9 @@ sync_array_output_info(
ulint i;
fprintf(file,
- "OS WAIT ARRAY INFO: reservation count %ld, signal count %ld\n",
- (long) arr->res_count, (long) arr->sg_count);
+ "OS WAIT ARRAY INFO: reservation count " ULINTPF
+ ", signal count " ULINTPF "\n",
+ arr->res_count, arr->sg_count);
i = 0;
count = 0;