summaryrefslogtreecommitdiff
path: root/myisam/mi_write.c
diff options
context:
space:
mode:
authoringo@mysql.com <>2005-04-16 17:58:11 +0200
committeringo@mysql.com <>2005-04-16 17:58:11 +0200
commitab0acbe14db51eb57d70a8a07268aacd33b91b0d (patch)
tree9968109506d6a551ff1f11e8e8a4afd3dea63f1e /myisam/mi_write.c
parent571ee3c8f08c21c98b64f12f6fbbe66ae823804e (diff)
parente0e3def7c7dd4b9c460138f3cdcf249cfe2e43cc (diff)
downloadmariadb-git-ab0acbe14db51eb57d70a8a07268aacd33b91b0d.tar.gz
Merge
Diffstat (limited to 'myisam/mi_write.c')
-rw-r--r--myisam/mi_write.c26
1 files changed, 24 insertions, 2 deletions
diff --git a/myisam/mi_write.c b/myisam/mi_write.c
index 768258a0c82..5d7e245c58f 100644
--- a/myisam/mi_write.c
+++ b/myisam/mi_write.c
@@ -421,8 +421,30 @@ err:
} /* w_search */
- /* Insert new key at right of key_pos */
- /* Returns 2 if key contains key to upper level */
+/*
+ Insert new key.
+
+ SYNOPSIS
+ _mi_insert()
+ info Open table information.
+ keyinfo Key definition information.
+ key New key.
+ anc_buff Key page (beginning).
+ key_pos Position in key page where to insert.
+ key_buff Copy of previous key.
+ father_buff parent key page for balancing.
+ father_key_pos position in parent key page for balancing.
+ father_page position of parent key page in file.
+ insert_last If to append at end of page.
+
+ DESCRIPTION
+ Insert new key at right of key_pos.
+
+ RETURN
+ 2 if key contains key to upper level.
+ 0 OK.
+ < 0 Error.
+*/
int _mi_insert(register MI_INFO *info, register MI_KEYDEF *keyinfo,
uchar *key, uchar *anc_buff, uchar *key_pos, uchar *key_buff,