summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorunknown <patg@radha.local>2005-08-26 02:09:56 +0200
committerunknown <patg@radha.local>2005-08-26 02:09:56 +0200
commit586dda71ff5d0bef8162189f21bf67efe04253f5 (patch)
tree85c964ba2b07f18ffc1955f6f4a11fcf3d8432b5 /sql
parentfc5aff7119ec2fb7505acb2917cd2020cbf4ee2b (diff)
downloadmariadb-git-586dda71ff5d0bef8162189f21bf67efe04253f5.tar.gz
ha_blackhole changes, same patch as http://lists.mysql.com/internals/27878, per brian
sql/ha_blackhole.cc: Blackhole Lock changes to blackhole per Brian, reapplied sql/ha_blackhole.h: blackhold lock changes added per brian
Diffstat (limited to 'sql')
-rw-r--r--sql/ha_blackhole.cc10
-rw-r--r--sql/ha_blackhole.h1
2 files changed, 7 insertions, 4 deletions
diff --git a/sql/ha_blackhole.cc b/sql/ha_blackhole.cc
index 5b1527aa210..d994b7d314a 100644
--- a/sql/ha_blackhole.cc
+++ b/sql/ha_blackhole.cc
@@ -124,14 +124,16 @@ int ha_blackhole::external_lock(THD *thd, int lock_type)
}
+uint ha_blackhole::lock_count(void) const
+{
+ DBUG_RETURN(0);
+}
+
THR_LOCK_DATA **ha_blackhole::store_lock(THD *thd,
THR_LOCK_DATA **to,
enum thr_lock_type lock_type)
{
- if (lock_type != TL_IGNORE && lock.type == TL_UNLOCK)
- lock.type=lock_type;
- *to++= &lock;
- return to;
+ DEBUG_RETURN(to);
}
diff --git a/sql/ha_blackhole.h b/sql/ha_blackhole.h
index 84a386e17f8..88715c62408 100644
--- a/sql/ha_blackhole.h
+++ b/sql/ha_blackhole.h
@@ -80,6 +80,7 @@ public:
void position(const byte *record);
void info(uint flag);
int external_lock(THD *thd, int lock_type);
+ uint lock_count(void) const;
int create(const char *name, TABLE *table_arg,
HA_CREATE_INFO *create_info);
THR_LOCK_DATA **store_lock(THD *thd,