Skip to content

Commit dbe4c4e

Browse files
rahul malikdr-m
authored andcommitted
BUG#25330449 ASSERT SIZE==SPACE->SIZE DURING BUF_READ_AHEAD_RANDOM
Problem: During read head, wrong page size is used to calcuate the tablespace size. Fix: Use physical page size to calculate tablespace size Reveiwed-By: Satya Bodapati RB: 14993
1 parent 849af74 commit dbe4c4e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

storage/innobase/buf/buf0rea.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*****************************************************************************
22
3-
Copyright (c) 1995, 2016, Oracle and/or its affiliates. All Rights Reserved.
3+
Copyright (c) 1995, 2017, Oracle and/or its affiliates. All Rights Reserved.
44
Copyright (c) 2015, 2016 MariaDB Corporation.
55
66
This program is free software; you can redistribute it and/or modify it under
@@ -301,10 +301,10 @@ buf_read_ahead_random(
301301
node = UT_LIST_GET_NEXT(chain, node)) {
302302

303303
size += os_file_get_size(node->handle)
304-
/ page_size.logical();
304+
/ page_size.physical();
305305
}
306306

307-
ut_ad(size==space->size);
307+
ut_ad(size == space->size);
308308
}
309309
#endif /* UNIV_DEBUG */
310310

0 commit comments

Comments
 (0)