summaryrefslogtreecommitdiff
path: root/myisam
diff options
context:
space:
mode:
authorjani@ua141d10.elisa.omakaista.fi <>2005-06-30 17:55:47 +0300
committerjani@ua141d10.elisa.omakaista.fi <>2005-06-30 17:55:47 +0300
commit15d4217c58d9e0c9410cff518cd5cd7fc5fd7c6a (patch)
treec34e508d265c44b8e95d88819890db2c513612cc /myisam
parentb60175f9c44ebbb6a9dd26847ce1bd6b0b3bc296 (diff)
downloadmariadb-git-15d4217c58d9e0c9410cff518cd5cd7fc5fd7c6a.tar.gz
Don't allow 8bytes for data file pointers for now.
Diffstat (limited to 'myisam')
-rw-r--r--myisam/mi_create.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/myisam/mi_create.c b/myisam/mi_create.c
index db614935321..890ee61fd7f 100644
--- a/myisam/mi_create.c
+++ b/myisam/mi_create.c
@@ -723,10 +723,13 @@ err:
uint mi_get_pointer_length(ulonglong file_length, uint def)
{
+ DBUG_ASSERT(def >= 2 && def <= 7);
if (file_length) /* If not default */
{
+#ifdef NOT_YET_READY_FOR_8_BYTE_POINTERS
if (file_length >= (longlong) 1 << 56)
def=8;
+#endif
if (file_length >= (longlong) 1 << 48)
def=7;
if (file_length >= (longlong) 1 << 40)