CPP   28

public dsm

Guest on 22nd August 2022 01:41:44 PM

  1. //****************************************************************
  2.  
  3. // Class definition for the disk space manager. This class manages the
  4. // space maps belonging to all the open DBs.
  5.  
  6. //****************************************************************
  7.  
  8. const int MAX_HEADER_PAGES = 10;
  9. const PageId INVALID_PAGE = -1;
  10. const int MAX_SPACE = PAGESIZE - sizeof(lsn_t);
  11. const int MAX_SPM_PAGES = DB_SIZE/(8*MAX_SPACE)+1;
  12. const int MAX_NAME = 50;
  13.  
  14. //****************************************************************
  15.  
  16.  
  17. //****************************************************************
  18. class SpaceMgr:public SharedRegion
  19. {
  20. public:
  21.         SpaceMgr();
  22.         ~SpaceMgr(){};
  23.  
  24.         DSM::DBEntry SpaceTable;
  25. };
  26.  
  27. //****************************************************************

Raw Paste


Login or Register to edit or fork this paste. It's free.