From: Date: February 21 2007 2:40pm Subject: bk commit into 5.1 tree (jonas:1.2417) BUG#26487 List-Archive: http://lists.mysql.com/commits/20263 X-Bug: 26487 Message-Id: <20070221134025.C8BA4424808@eel.mysql.com> Below is the list of changes that have just been committed into a local 5.1 repository of jonas. When jonas does a push these changes will be propagated to the main repository and, within 24 hours after the push, to the public repository. For information on how to access the public repository see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html ChangeSet@stripped, 2007-02-21 14:40:15+01:00, jonas@eel.(none) +1 -0 ndb - bug#26487 fix bug in extent/page allocation when *using* >1gb datafiles storage/ndb/src/kernel/blocks/tsman.cpp@stripped, 2007-02-21 14:40:12+01:00, jonas@eel.(none) +2 -3 Make sure correct page id is returned even if on extent page 2 # This is a BitKeeper patch. What follows are the unified diffs for the # set of deltas contained in the patch. The rest of the patch, the part # that BitKeeper cares about, is below these diffs. # User: jonas # Host: eel.(none) # Root: /home/jonas/src/51-work --- 1.13/storage/ndb/src/kernel/blocks/tsman.cpp 2007-02-21 14:40:25 +01:00 +++ 1.14/storage/ndb/src/kernel/blocks/tsman.cpp 2007-02-21 14:40:25 +01:00 @@ -1844,6 +1844,7 @@ ndbrequire(m_file_hash.find(file_ptr, file_key)); struct req val = lookup_extent(req.key.m_page_no, file_ptr.p); + Uint32 page_no_in_extent = calc_page_no_in_extent(req.key.m_page_no, &val); Page_cache_client::Request preq; preq.m_page.m_page_no = val.m_extent_page_no; @@ -1869,7 +1870,6 @@ ndbrequire(header->m_table == req.request.table_id); - Uint32 page_no_in_extent = calc_page_no_in_extent(req.key.m_page_no, &val); Uint32 word = header->get_free_word_offset(page_no_in_extent); Uint32 shift = SZ * (page_no_in_extent & 7); @@ -1929,8 +1929,7 @@ found: header->update_free_bits(page_no, src_bits | UNCOMMITTED_MASK); rep->bits= (src_bits & UNCOMMITTED_MASK) >> UNCOMMITTED_SHIFT; - rep->key.m_page_no= - val.m_extent_pages + val.m_extent_no * val.m_extent_size + page_no; + rep->key.m_page_no = req.key.m_page_no + page_no - page_no_in_extent; rep->reply.errorCode= 0; return; }