mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 02:03:04 +01:00
Fix some of the problems in new indices code noted by Valgrind. These fixes are result of discussion with Arno. But indices are still broken; Arno promised to fix remaining stuff from this area during next weekend
This commit is contained in:
parent
854f32a169
commit
faabb4b9b4
@ -811,6 +811,7 @@ IDX_E BTR_key(thread_db* tdbb, jrd_rel* relation, Record* record, index_desc* id
|
||||
|
||||
IDX_E result = idx_e_ok;
|
||||
index_desc::idx_repeat* tail = idx->idx_rpt;
|
||||
key->key_flags = 0;
|
||||
|
||||
try {
|
||||
|
||||
@ -1181,6 +1182,8 @@ void BTR_make_key(thread_db* tdbb,
|
||||
fb_assert(exprs != NULL);
|
||||
fb_assert(key != NULL);
|
||||
|
||||
key->key_flags = 0;
|
||||
|
||||
index_desc::idx_repeat* tail = idx->idx_rpt;
|
||||
|
||||
// If the index is a single segment index, don't sweat the compound
|
||||
@ -2326,6 +2329,7 @@ static void copy_key(const temporary_key* in, temporary_key* out)
|
||||
**************************************/
|
||||
|
||||
out->key_length = in->key_length;
|
||||
out->key_flags = in->key_flags;
|
||||
memcpy(out->key_data, in->key_data, in->key_length);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user