Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 93883 Details for
Bug 143408
mysql-5.1.7_beta fails to build
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Potential patch that fixes it.
999_all_default-pgman-5.1.7.patch (text/plain), 6.41 KB, created by
Chris Fairles
on 2006-08-09 19:19:16 UTC
(
hide
)
Description:
Potential patch that fixes it.
Filename:
MIME Type:
Creator:
Chris Fairles
Created:
2006-08-09 19:19:16 UTC
Size:
6.41 KB
patch
obsolete
>--- ./storage/ndb/src/kernel/blocks/pgman.cpp 2006-02-27 16:25:25.000000000 -0500 >+++ ./storage/ndb/src/kernel/blocks/pgman.cpp.new 2006-08-09 21:55:28.000000000 -0400 >@@ -1145,6 +1145,106 @@ > do_lcp_loop(signal, true); > } > >+NdbOut& >+operator<<(NdbOut& out, Ptr<Pgman::Page_request> ptr) >+{ >+ const Pgman::Page_request& pr = *ptr.p; >+ const char* bname = getBlockName(pr.m_block, "?"); >+ out << "PR"; >+ if (ptr.i != RNIL) >+ out << " [" << dec << ptr.i << "]"; >+ out << " block=" << bname; >+ out << " flags=" << hex << pr.m_flags; >+ out << "," << dec << (pr.m_flags & Pgman::Page_request::OP_MASK); >+ { >+ if (pr.m_flags & Pgman::Page_request::LOCK_PAGE) >+ out << ",lock_page"; >+ if (pr.m_flags & Pgman::Page_request::EMPTY_PAGE) >+ out << ",empty_page"; >+ if (pr.m_flags & Pgman::Page_request::ALLOC_REQ) >+ out << ",alloc_req"; >+ if (pr.m_flags & Pgman::Page_request::COMMIT_REQ) >+ out << ",commit_req"; >+ if (pr.m_flags & Pgman::Page_request::DIRTY_REQ) >+ out << ",dirty_req"; >+ if (pr.m_flags & Pgman::Page_request::CORR_REQ) >+ out << ",corr_req"; >+ } >+ return out; >+} >+ >+NdbOut& >+operator<<(NdbOut& out, Ptr<Pgman::Page_entry> ptr) >+{ >+ const Pgman::Page_entry pe = *ptr.p; >+ Uint32 list_no = Pgman::get_sublist_no(pe.m_state); >+ out << "PE [" << dec << ptr.i << "]"; >+ out << " state=" << hex << pe.m_state; >+ { >+ if (pe.m_state & Pgman::Page_entry::REQUEST) >+ out << ",request"; >+ if (pe.m_state & Pgman::Page_entry::EMPTY) >+ out << ",empty"; >+ if (pe.m_state & Pgman::Page_entry::BOUND) >+ out << ",bound"; >+ if (pe.m_state & Pgman::Page_entry::MAPPED) >+ out << ",mapped"; >+ if (pe.m_state & Pgman::Page_entry::DIRTY) >+ out << ",dirty"; >+ if (pe.m_state & Pgman::Page_entry::USED) >+ out << ",used"; >+ if (pe.m_state & Pgman::Page_entry::BUSY) >+ out << ",busy"; >+ if (pe.m_state & Pgman::Page_entry::LOCKED) >+ out << ",locked"; >+ if (pe.m_state & Pgman::Page_entry::PAGEIN) >+ out << ",pagein"; >+ if (pe.m_state & Pgman::Page_entry::PAGEOUT) >+ out << ",pageout"; >+ if (pe.m_state & Pgman::Page_entry::LOGSYNC) >+ out << ",logsync"; >+ if (pe.m_state & Pgman::Page_entry::LCP) >+ out << ",lcp"; >+ if (pe.m_state & Pgman::Page_entry::HOT) >+ out << ",hot"; >+ if (pe.m_state & Pgman::Page_entry::ONSTACK) >+ out << ",onstack"; >+ if (pe.m_state & Pgman::Page_entry::ONQUEUE) >+ out << ",onqueue"; >+ } >+ out << " list="; >+ if (list_no == ZNIL) >+ out << "NONE"; >+ else >+ { >+ out << dec << list_no; >+ out << "," << Pgman::get_sublist_name(list_no); >+ } >+ out << " diskpage=" << dec << pe.m_file_no << "," << pe.m_page_no; >+ if (pe.m_real_page_i == RNIL) >+ out << " realpage=RNIL"; >+ else >+ out << " realpage=" << dec << pe.m_real_page_i; >+ out << " lsn=" << dec << pe.m_lsn; >+ out << " busy_count=" << dec << pe.m_busy_count; >+#ifdef VM_TRACE >+ { >+ LocalDLFifoList<Pgman::Page_request> >+ req_list(ptr.p->m_this->m_page_request_pool, ptr.p->m_requests); >+ if (! req_list.isEmpty()) >+ { >+ Ptr<Pgman::Page_request> req_ptr; >+ out << " req:"; >+ for (req_list.first(req_ptr); req_ptr.i != RNIL; req_list.next(req_ptr)) >+ { >+ out << " " << req_ptr; >+ } >+ } >+ } >+#endif >+ return out; >+} >+ > bool > Pgman::process_lcp(Signal* signal) > { >@@ -2087,105 +2187,7 @@ > return "?"; > } > >-NdbOut& >-operator<<(NdbOut& out, Ptr<Pgman::Page_request> ptr) >-{ >- const Pgman::Page_request& pr = *ptr.p; >- const char* bname = getBlockName(pr.m_block, "?"); >- out << "PR"; >- if (ptr.i != RNIL) >- out << " [" << dec << ptr.i << "]"; >- out << " block=" << bname; >- out << " flags=" << hex << pr.m_flags; >- out << "," << dec << (pr.m_flags & Pgman::Page_request::OP_MASK); >- { >- if (pr.m_flags & Pgman::Page_request::LOCK_PAGE) >- out << ",lock_page"; >- if (pr.m_flags & Pgman::Page_request::EMPTY_PAGE) >- out << ",empty_page"; >- if (pr.m_flags & Pgman::Page_request::ALLOC_REQ) >- out << ",alloc_req"; >- if (pr.m_flags & Pgman::Page_request::COMMIT_REQ) >- out << ",commit_req"; >- if (pr.m_flags & Pgman::Page_request::DIRTY_REQ) >- out << ",dirty_req"; >- if (pr.m_flags & Pgman::Page_request::CORR_REQ) >- out << ",corr_req"; >- } >- return out; >-} > >-NdbOut& >-operator<<(NdbOut& out, Ptr<Pgman::Page_entry> ptr) >-{ >- const Pgman::Page_entry pe = *ptr.p; >- Uint32 list_no = Pgman::get_sublist_no(pe.m_state); >- out << "PE [" << dec << ptr.i << "]"; >- out << " state=" << hex << pe.m_state; >- { >- if (pe.m_state & Pgman::Page_entry::REQUEST) >- out << ",request"; >- if (pe.m_state & Pgman::Page_entry::EMPTY) >- out << ",empty"; >- if (pe.m_state & Pgman::Page_entry::BOUND) >- out << ",bound"; >- if (pe.m_state & Pgman::Page_entry::MAPPED) >- out << ",mapped"; >- if (pe.m_state & Pgman::Page_entry::DIRTY) >- out << ",dirty"; >- if (pe.m_state & Pgman::Page_entry::USED) >- out << ",used"; >- if (pe.m_state & Pgman::Page_entry::BUSY) >- out << ",busy"; >- if (pe.m_state & Pgman::Page_entry::LOCKED) >- out << ",locked"; >- if (pe.m_state & Pgman::Page_entry::PAGEIN) >- out << ",pagein"; >- if (pe.m_state & Pgman::Page_entry::PAGEOUT) >- out << ",pageout"; >- if (pe.m_state & Pgman::Page_entry::LOGSYNC) >- out << ",logsync"; >- if (pe.m_state & Pgman::Page_entry::LCP) >- out << ",lcp"; >- if (pe.m_state & Pgman::Page_entry::HOT) >- out << ",hot"; >- if (pe.m_state & Pgman::Page_entry::ONSTACK) >- out << ",onstack"; >- if (pe.m_state & Pgman::Page_entry::ONQUEUE) >- out << ",onqueue"; >- } >- out << " list="; >- if (list_no == ZNIL) >- out << "NONE"; >- else >- { >- out << dec << list_no; >- out << "," << Pgman::get_sublist_name(list_no); >- } >- out << " diskpage=" << dec << pe.m_file_no << "," << pe.m_page_no; >- if (pe.m_real_page_i == RNIL) >- out << " realpage=RNIL"; >- else >- out << " realpage=" << dec << pe.m_real_page_i; >- out << " lsn=" << dec << pe.m_lsn; >- out << " busy_count=" << dec << pe.m_busy_count; >-#ifdef VM_TRACE >- { >- LocalDLFifoList<Pgman::Page_request> >- req_list(ptr.p->m_this->m_page_request_pool, ptr.p->m_requests); >- if (! req_list.isEmpty()) >- { >- Ptr<Pgman::Page_request> req_ptr; >- out << " req:"; >- for (req_list.first(req_ptr); req_ptr.i != RNIL; req_list.next(req_ptr)) >- { >- out << " " << req_ptr; >- } >- } >- } >-#endif >- return out; >-} > > #ifdef VM_TRACE > void
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 143408
: 93883