summaryrefslogtreecommitdiff
path: root/sql/lock.cc
diff options
context:
space:
mode:
authorSinisa@sinisa.nasamreza.org <>2002-10-30 16:52:12 +0200
committerSinisa@sinisa.nasamreza.org <>2002-10-30 16:52:12 +0200
commit5fbd7b63c5852ceff5558981b56f3b16334223d5 (patch)
treef019642072be903fd4c5606696e7df32356c28f0 /sql/lock.cc
parent3c570209df399cc24d1e5e454a8bc152ca284a81 (diff)
downloadmariadb-git-5fbd7b63c5852ceff5558981b56f3b16334223d5.tar.gz
changes for mysqladmin debug
and a bug fix for derived tables
Diffstat (limited to 'sql/lock.cc')
-rw-r--r--sql/lock.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/sql/lock.cc b/sql/lock.cc
index aed0e1988ea..3b2444c8e9d 100644
--- a/sql/lock.cc
+++ b/sql/lock.cc
@@ -69,6 +69,12 @@ TODO:
#include "mysql_priv.h"
#include <hash.h>
#include <assert.h>
+#include <ha_myisammrg.h>
+#ifndef MASTER
+#include "../srclib/myisammrg/myrg_def.h"
+#else
+#include "../myisammrg/myrg_def.h"
+#endif
extern HASH open_cache;
@@ -154,6 +160,7 @@ retry:
sql_lock=0;
}
}
+
thd->lock_time();
DBUG_RETURN (sql_lock);
}
@@ -410,8 +417,12 @@ static MYSQL_LOCK *get_lock_data(THD *thd, TABLE **table_ptr, uint count,
return 0;
}
}
+ THR_LOCK_DATA **org_locks = locks;
locks=table->file->store_lock(thd, locks, get_old_locks ? TL_IGNORE :
lock_type);
+ if (locks)
+ for ( ; org_locks != locks ; org_locks++)
+ (*org_locks)->debug_print_param= (void *) table;
}
return sql_lock;
}