299
299
an exclusive lock on the buffer frame. The flag is cleared and the x-lock
300
300
released by the i/o-handler thread. Does a random read-ahead if it seems
306
/* out: number of page read requests issued: this can
307
be > 1 if read-ahead occurred */
305
/* out: TRUE if success, FALSE otherwise */
308
306
ulint space, /* in: space id */
309
307
ulint offset) /* in: page number */
311
309
ib_longlong tablespace_version;
316
313
tablespace_version = fil_space_get_version(space);
318
count = buf_read_ahead_random(space, offset);
315
buf_read_ahead_random(space, offset);
320
317
/* We do the i/o in the synchronous aio mode to save thread
321
318
switches: hence TRUE */
323
count2 = buf_read_page_low(&err, TRUE, BUF_READ_ANY_PAGE, space,
320
count = buf_read_page_low(&err, TRUE, BUF_READ_ANY_PAGE, space,
324
321
tablespace_version, offset);
325
srv_buf_pool_reads+= count2;
322
srv_buf_pool_reads+= count;
326
323
if (err == DB_TABLESPACE_DELETED) {
327
324
ut_print_timestamp(stderr);