Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
bd2ec805
Commit
bd2ec805
authored
Jan 11, 2007
by
kent@mysql.com/kent-amd64.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Many files:
Reverted change for bug#13859, applied smaller patch from Marko
parent
4d12d97c
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
16 additions
and
13 deletions
+16
-13
innobase/buf/buf0buf.c
innobase/buf/buf0buf.c
+1
-1
innobase/dict/dict0dict.c
innobase/dict/dict0dict.c
+3
-3
innobase/fil/fil0fil.c
innobase/fil/fil0fil.c
+2
-2
innobase/ha/ha0ha.c
innobase/ha/ha0ha.c
+1
-1
innobase/ha/hash0hash.c
innobase/ha/hash0hash.c
+1
-1
innobase/include/hash0hash.h
innobase/include/hash0hash.h
+4
-1
innobase/lock/lock0lock.c
innobase/lock/lock0lock.c
+1
-1
innobase/log/log0recv.c
innobase/log/log0recv.c
+2
-2
innobase/thr/thr0loc.c
innobase/thr/thr0loc.c
+1
-1
No files found.
innobase/buf/buf0buf.c
View file @
bd2ec805
...
@@ -621,7 +621,7 @@ buf_pool_init(
...
@@ -621,7 +621,7 @@ buf_pool_init(
}
}
}
}
buf_pool
->
page_hash
=
hash
0
_create
(
2
*
max_size
);
buf_pool
->
page_hash
=
hash_create
(
2
*
max_size
);
buf_pool
->
n_pend_reads
=
0
;
buf_pool
->
n_pend_reads
=
0
;
...
...
innobase/dict/dict0dict.c
View file @
bd2ec805
...
@@ -703,13 +703,13 @@ dict_init(void)
...
@@ -703,13 +703,13 @@ dict_init(void)
mutex_create
(
&
(
dict_sys
->
mutex
));
mutex_create
(
&
(
dict_sys
->
mutex
));
mutex_set_level
(
&
(
dict_sys
->
mutex
),
SYNC_DICT
);
mutex_set_level
(
&
(
dict_sys
->
mutex
),
SYNC_DICT
);
dict_sys
->
table_hash
=
hash
0
_create
(
buf_pool_get_max_size
()
/
dict_sys
->
table_hash
=
hash_create
(
buf_pool_get_max_size
()
/
(
DICT_POOL_PER_TABLE_HASH
*
(
DICT_POOL_PER_TABLE_HASH
*
UNIV_WORD_SIZE
));
UNIV_WORD_SIZE
));
dict_sys
->
table_id_hash
=
hash
0
_create
(
buf_pool_get_max_size
()
/
dict_sys
->
table_id_hash
=
hash_create
(
buf_pool_get_max_size
()
/
(
DICT_POOL_PER_TABLE_HASH
*
(
DICT_POOL_PER_TABLE_HASH
*
UNIV_WORD_SIZE
));
UNIV_WORD_SIZE
));
dict_sys
->
col_hash
=
hash
0
_create
(
buf_pool_get_max_size
()
/
dict_sys
->
col_hash
=
hash_create
(
buf_pool_get_max_size
()
/
(
DICT_POOL_PER_COL_HASH
*
(
DICT_POOL_PER_COL_HASH
*
UNIV_WORD_SIZE
));
UNIV_WORD_SIZE
));
dict_sys
->
size
=
0
;
dict_sys
->
size
=
0
;
...
...
innobase/fil/fil0fil.c
View file @
bd2ec805
...
@@ -1295,8 +1295,8 @@ fil_system_create(
...
@@ -1295,8 +1295,8 @@ fil_system_create(
mutex_set_level
(
&
(
system
->
mutex
),
SYNC_ANY_LATCH
);
mutex_set_level
(
&
(
system
->
mutex
),
SYNC_ANY_LATCH
);
system
->
spaces
=
hash
0
_create
(
hash_size
);
system
->
spaces
=
hash_create
(
hash_size
);
system
->
name_hash
=
hash
0
_create
(
hash_size
);
system
->
name_hash
=
hash_create
(
hash_size
);
UT_LIST_INIT
(
system
->
LRU
);
UT_LIST_INIT
(
system
->
LRU
);
...
...
innobase/ha/ha0ha.c
View file @
bd2ec805
...
@@ -32,7 +32,7 @@ ha_create(
...
@@ -32,7 +32,7 @@ ha_create(
hash_table_t
*
table
;
hash_table_t
*
table
;
ulint
i
;
ulint
i
;
table
=
hash
0
_create
(
n
);
table
=
hash_create
(
n
);
if
(
in_btr_search
)
{
if
(
in_btr_search
)
{
table
->
adaptive
=
TRUE
;
table
->
adaptive
=
TRUE
;
...
...
innobase/ha/hash0hash.c
View file @
bd2ec805
...
@@ -74,7 +74,7 @@ Creates a hash table with >= n array cells. The actual number of cells is
...
@@ -74,7 +74,7 @@ Creates a hash table with >= n array cells. The actual number of cells is
chosen to be a prime number slightly bigger than n. */
chosen to be a prime number slightly bigger than n. */
hash_table_t
*
hash_table_t
*
hash
0
_create
(
hash_create
(
/*========*/
/*========*/
/* out, own: created table */
/* out, own: created table */
ulint
n
)
/* in: number of array cells */
ulint
n
)
/* in: number of array cells */
...
...
innobase/include/hash0hash.h
View file @
bd2ec805
...
@@ -18,12 +18,15 @@ typedef struct hash_cell_struct hash_cell_t;
...
@@ -18,12 +18,15 @@ typedef struct hash_cell_struct hash_cell_t;
typedef
void
*
hash_node_t
;
typedef
void
*
hash_node_t
;
/* Fix Bug #13859: symbol collision between imap/mysql */
#define hash_create hash0_create
/*****************************************************************
/*****************************************************************
Creates a hash table with >= n array cells. The actual number
Creates a hash table with >= n array cells. The actual number
of cells is chosen to be a prime number slightly bigger than n. */
of cells is chosen to be a prime number slightly bigger than n. */
hash_table_t
*
hash_table_t
*
hash
0
_create
(
hash_create
(
/*========*/
/*========*/
/* out, own: created table */
/* out, own: created table */
ulint
n
);
/* in: number of array cells */
ulint
n
);
/* in: number of array cells */
...
...
innobase/lock/lock0lock.c
View file @
bd2ec805
...
@@ -550,7 +550,7 @@ lock_sys_create(
...
@@ -550,7 +550,7 @@ lock_sys_create(
{
{
lock_sys
=
mem_alloc
(
sizeof
(
lock_sys_t
));
lock_sys
=
mem_alloc
(
sizeof
(
lock_sys_t
));
lock_sys
->
rec_hash
=
hash
0
_create
(
n_cells
);
lock_sys
->
rec_hash
=
hash_create
(
n_cells
);
/* hash_create_mutexes(lock_sys->rec_hash, 2, SYNC_REC_LOCK); */
/* hash_create_mutexes(lock_sys->rec_hash, 2, SYNC_REC_LOCK); */
...
...
innobase/log/log0recv.c
View file @
bd2ec805
...
@@ -147,7 +147,7 @@ recv_sys_init(
...
@@ -147,7 +147,7 @@ recv_sys_init(
recv_sys
->
len
=
0
;
recv_sys
->
len
=
0
;
recv_sys
->
recovered_offset
=
0
;
recv_sys
->
recovered_offset
=
0
;
recv_sys
->
addr_hash
=
hash
0
_create
(
available_memory
/
64
);
recv_sys
->
addr_hash
=
hash_create
(
available_memory
/
64
);
recv_sys
->
n_addrs
=
0
;
recv_sys
->
n_addrs
=
0
;
recv_sys
->
apply_log_recs
=
FALSE
;
recv_sys
->
apply_log_recs
=
FALSE
;
...
@@ -186,7 +186,7 @@ recv_sys_empty_hash(void)
...
@@ -186,7 +186,7 @@ recv_sys_empty_hash(void)
hash_table_free
(
recv_sys
->
addr_hash
);
hash_table_free
(
recv_sys
->
addr_hash
);
mem_heap_empty
(
recv_sys
->
heap
);
mem_heap_empty
(
recv_sys
->
heap
);
recv_sys
->
addr_hash
=
hash
0
_create
(
buf_pool_get_curr_size
()
/
256
);
recv_sys
->
addr_hash
=
hash_create
(
buf_pool_get_curr_size
()
/
256
);
}
}
/************************************************************
/************************************************************
...
...
innobase/thr/thr0loc.c
View file @
bd2ec805
...
@@ -224,7 +224,7 @@ thr_local_init(void)
...
@@ -224,7 +224,7 @@ thr_local_init(void)
ut_a
(
thr_local_hash
==
NULL
);
ut_a
(
thr_local_hash
==
NULL
);
thr_local_hash
=
hash
0
_create
(
OS_THREAD_MAX_N
+
100
);
thr_local_hash
=
hash_create
(
OS_THREAD_MAX_N
+
100
);
mutex_create
(
&
thr_local_mutex
);
mutex_create
(
&
thr_local_mutex
);
mutex_set_level
(
&
thr_local_mutex
,
SYNC_THR_LOCAL
);
mutex_set_level
(
&
thr_local_mutex
,
SYNC_THR_LOCAL
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment