mirror of
https://github.com/MariaDB/server.git
synced 2025-08-05 13:16:09 +03:00
Manual merge
This commit is contained in:
@@ -62,7 +62,6 @@ From: $FROM
|
|||||||
To: $INTERNALS
|
To: $INTERNALS
|
||||||
Subject: bk commit into $VERSION tree ($CHANGESET)$BS
|
Subject: bk commit into $VERSION tree ($CHANGESET)$BS
|
||||||
$BH
|
$BH
|
||||||
|
|
||||||
Below is the list of changes that have just been committed into a local
|
Below is the list of changes that have just been committed into a local
|
||||||
$VERSION repository of $USER. When $USER does a push these changes will
|
$VERSION repository of $USER. When $USER does a push these changes will
|
||||||
be propagated to the main repository and, within 24 hours after the
|
be propagated to the main repository and, within 24 hours after the
|
||||||
|
13
sql/table.cc
13
sql/table.cc
@@ -195,7 +195,6 @@ int openfrm(const char *name, const char *alias, uint db_stat, uint prgflag,
|
|||||||
goto err_not_open; /* purecov: inspected */
|
goto err_not_open; /* purecov: inspected */
|
||||||
bzero((char*) keyinfo,n_length);
|
bzero((char*) keyinfo,n_length);
|
||||||
outparam->key_info=keyinfo;
|
outparam->key_info=keyinfo;
|
||||||
outparam->max_key_length= outparam->total_key_length= 0;
|
|
||||||
key_part= my_reinterpret_cast(KEY_PART_INFO*) (keyinfo+keys);
|
key_part= my_reinterpret_cast(KEY_PART_INFO*) (keyinfo+keys);
|
||||||
strpos=disk_buff+6;
|
strpos=disk_buff+6;
|
||||||
|
|
||||||
@@ -251,11 +250,6 @@ int openfrm(const char *name, const char *alias, uint db_stat, uint prgflag,
|
|||||||
}
|
}
|
||||||
key_part->store_length=key_part->length;
|
key_part->store_length=key_part->length;
|
||||||
}
|
}
|
||||||
set_if_bigger(outparam->max_key_length,keyinfo->key_length+
|
|
||||||
keyinfo->key_parts);
|
|
||||||
outparam->total_key_length+= keyinfo->key_length;
|
|
||||||
if (keyinfo->flags & HA_NOSAME)
|
|
||||||
set_if_bigger(outparam->max_unique_length,keyinfo->key_length);
|
|
||||||
}
|
}
|
||||||
keynames=(char*) key_part;
|
keynames=(char*) key_part;
|
||||||
strpos+= (strmov(keynames, (char *) strpos) - keynames)+1;
|
strpos+= (strmov(keynames, (char *) strpos) - keynames)+1;
|
||||||
@@ -627,7 +621,6 @@ int openfrm(const char *name, const char *alias, uint db_stat, uint prgflag,
|
|||||||
if (!(field->flags & BINARY_FLAG))
|
if (!(field->flags & BINARY_FLAG))
|
||||||
keyinfo->flags|= HA_END_SPACE_KEY;
|
keyinfo->flags|= HA_END_SPACE_KEY;
|
||||||
}
|
}
|
||||||
set_if_bigger(outparam->max_key_length, keyinfo->key_length);
|
|
||||||
if (i == 0 && key != primary_key)
|
if (i == 0 && key != primary_key)
|
||||||
field->flags |=
|
field->flags |=
|
||||||
((keyinfo->flags & HA_NOSAME) &&
|
((keyinfo->flags & HA_NOSAME) &&
|
||||||
@@ -686,6 +679,12 @@ int openfrm(const char *name, const char *alias, uint db_stat, uint prgflag,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
keyinfo->usable_key_parts=usable_parts; // Filesort
|
keyinfo->usable_key_parts=usable_parts; // Filesort
|
||||||
|
|
||||||
|
set_if_bigger(outparam->max_key_length,keyinfo->key_length+
|
||||||
|
keyinfo->key_parts);
|
||||||
|
outparam->total_key_length+= keyinfo->key_length;
|
||||||
|
if (keyinfo->flags & HA_NOSAME)
|
||||||
|
set_if_bigger(outparam->max_unique_length,keyinfo->key_length);
|
||||||
}
|
}
|
||||||
if (primary_key < MAX_KEY &&
|
if (primary_key < MAX_KEY &&
|
||||||
(outparam->keys_in_use.is_set(primary_key)))
|
(outparam->keys_in_use.is_set(primary_key)))
|
||||||
|
Reference in New Issue
Block a user