diff options
author | sergefp@mysql.com <> | 2004-05-13 01:49:47 +0400 |
---|---|---|
committer | sergefp@mysql.com <> | 2004-05-13 01:49:47 +0400 |
commit | 3b29cad05c71dc28692a051fb28085d5a5484d8e (patch) | |
tree | c476a92e4fdd992d29c2236102f35fd64e43857f /sql/ha_heap.h | |
parent | 654bf99b94be51126424c7dce1bc07f1840aff83 (diff) | |
parent | a46d7542c94eb5848231324a043ddccffbc552b0 (diff) | |
download | mariadb-git-3b29cad05c71dc28692a051fb28085d5a5484d8e.tar.gz |
Manual merge
Diffstat (limited to 'sql/ha_heap.h')
-rw-r--r-- | sql/ha_heap.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sql/ha_heap.h b/sql/ha_heap.h index feadc0c3c0f..47e125ed95d 100644 --- a/sql/ha_heap.h +++ b/sql/ha_heap.h @@ -95,5 +95,10 @@ class ha_heap: public handler THR_LOCK_DATA **store_lock(THD *thd, THR_LOCK_DATA **to, enum thr_lock_type lock_type); - + int cmp_ref(const byte *ref1, const byte *ref2) + { + HEAP_PTR ptr1=*(HEAP_PTR*)ref1; + HEAP_PTR ptr2=*(HEAP_PTR*)ref2; + return ptr1 < ptr2? -1 : (ptr1 > ptr2? 1 : 0); + } }; |