diff --git a/sql/ha_myisam.cc b/sql/ha_myisam.cc
index a1fb09d049b5125018217e97b1f67027362b97b1..aef9c09833a75eff07de51dd93ffa8062857fe2e 100644
--- a/sql/ha_myisam.cc
+++ b/sql/ha_myisam.cc
@@ -486,7 +486,7 @@ int ha_myisam::repair(THD* thd, HA_CHECK_OPT *check_opt)
   param.thd = thd;
   param.op_name = (char*) "repair";
   param.testflag = ((check_opt->flags & ~(T_EXTEND)) |
-		    T_SILENT | T_FORCE_CREATE |
+		    T_SILENT | T_FORCE_CREATE | T_CALC_CHECKSUM |
 		    (check_opt->flags & T_EXTEND ? T_REP : T_REP_BY_SORT));
   param.sort_buffer_length=  check_opt->sort_buffer_size;
   start_records=file->state->records;