Skip to content

Commit 6907da2

Browse files
author
Jan Lindström
committed
Fix small error on LZMA compression error printout.
1 parent a60ea19 commit 6907da2

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

storage/innobase/fil/fil0pagecompress.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -493,9 +493,7 @@ fil_decompress_page(
493493
ulint actual_size = 0;
494494
ulint compression_alg = 0;
495495
byte *in_buf;
496-
#ifdef HAVE_LZO
497496
ulint olen=0;
498-
#endif
499497
ulint ptype;
500498

501499
ut_ad(buf);
@@ -649,7 +647,7 @@ fil_decompress_page(
649647
"InnoDB: Corruption: Page is marked as compressed\n"
650648
"InnoDB: but decompression read only %ld bytes.\n"
651649
"InnoDB: size %lu len %lu\n",
652-
olen, actual_size, len);
650+
dst_pos, actual_size, len);
653651
fflush(stderr);
654652

655653
ut_error;

storage/xtradb/fil/fil0pagecompress.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -490,9 +490,7 @@ fil_decompress_page(
490490
ulint actual_size = 0;
491491
ulint compression_alg = 0;
492492
byte *in_buf;
493-
#ifdef HAVE_LZO
494493
ulint olen=0;
495-
#endif
496494
ulint ptype;
497495

498496
ut_ad(buf);
@@ -646,7 +644,7 @@ fil_decompress_page(
646644
"InnoDB: Corruption: Page is marked as compressed\n"
647645
"InnoDB: but decompression read only %ld bytes.\n"
648646
"InnoDB: size %lu len %lu\n",
649-
olen, actual_size, len);
647+
dst_pos, actual_size, len);
650648
fflush(stderr);
651649

652650
ut_error;

0 commit comments

Comments
 (0)