mt::errmsg

Separate job buffer full and out of job buffer for mt.cpp
(wrt to error reporting)

---
 storage/ndb/src/kernel/vm/mt.cpp |   14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

Index: 64-rel/storage/ndb/src/kernel/vm/mt.cpp
===================================================================
--- 64-rel.orig/storage/ndb/src/kernel/vm/mt.cpp	2009-12-21 11:41:00.000000000 +0100
+++ 64-rel/storage/ndb/src/kernel/vm/mt.cpp	2009-12-21 11:41:19.000000000 +0100
@@ -935,13 +935,21 @@ fifo_used_pages(struct thr_data* selfptr
 
 static
 void
-job_buffer_full()
+job_buffer_full(struct thr_data* selfptr)
 {
   ndbout_c("job buffer full");
   abort();
 }
 
 static
+void
+out_of_job_buffer(struct thr_data* selfptr)
+{
+  ndbout_c("out of job buffer");
+  abort();
+}
+
+static
 thr_job_buffer*
 seize_buffer(struct thr_repository* rep, int thr_no, bool prioa)
 {
@@ -983,7 +991,7 @@ seize_buffer(struct thr_repository* rep,
       {
         if (unlikely(cnt == 0))
         {
-          job_buffer_full();
+          out_of_job_buffer(selfptr);
         }
         break;
       }
@@ -2206,7 +2214,7 @@ insert_signal(thr_job_queue *q, thr_jb_w
      */
     if (unlikely(write_index == q->m_head->m_read_index))
     {
-      job_buffer_full();
+      job_buffer_full(0);
     }
     new_buffer->m_len = 0;
     new_buffer->m_prioa = prioa;
