Skip to content

Commit 38471a6

Browse files
author
Jan Lindström
committed
Remove incorrect trim_len calculation. We have already alligned actual
page data write.
1 parent 3c77143 commit 38471a6

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

storage/xtradb/os/os0file.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6239,7 +6239,6 @@ os_file_trim(
62396239

62406240
#ifdef __linux__
62416241
#if defined(FALLOC_FL_PUNCH_HOLE) && defined (FALLOC_FL_KEEP_SIZE)
6242-
trim_len = (trim_len & ~(SECT_SIZE - 1)) + SECT_SIZE;
62436242
int ret = fallocate(file, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, off, trim_len);
62446243

62456244
if (ret) {

0 commit comments

Comments
 (0)