You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
911 B

20 years ago
20 years ago
  1. /**********************************************************************
  2. File-based utilities
  3. (c) 1995 Innobase Oy
  4. Created 12/13/1995 Heikki Tuuri
  5. ***********************************************************************/
  6. #ifndef fut0fut_h
  7. #define fut0fut_h
  8. #include "univ.i"
  9. #include "fil0fil.h"
  10. #include "mtr0mtr.h"
  11. /************************************************************************
  12. Gets a pointer to a file address and latches the page. */
  13. UNIV_INLINE
  14. byte*
  15. fut_get_ptr(
  16. /*========*/
  17. /* out: pointer to a byte in a frame; the file
  18. page in the frame is bufferfixed and latched */
  19. ulint space, /* in: space id */
  20. ulint zip_size,/* in: compressed page size in bytes
  21. or 0 for uncompressed pages */
  22. fil_addr_t addr, /* in: file address */
  23. ulint rw_latch, /* in: RW_S_LATCH, RW_X_LATCH */
  24. mtr_t* mtr); /* in: mtr handle */
  25. #ifndef UNIV_NONINL
  26. #include "fut0fut.ic"
  27. #endif
  28. #endif