Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
1e35ae74
Commit
1e35ae74
authored
Apr 18, 2012
by
antirez
Browse files
Currenly not used code in dict.c commented out.
parent
5498e7bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/dict.c
View file @
1e35ae74
...
@@ -633,6 +633,21 @@ void dictEmpty(dict *d) {
...
@@ -633,6 +633,21 @@ void dictEmpty(dict *d) {
d
->
iterators
=
0
;
d
->
iterators
=
0
;
}
}
void
dictEnableResize
(
void
)
{
dict_can_resize
=
1
;
}
void
dictDisableResize
(
void
)
{
dict_can_resize
=
0
;
}
#if 0
The following is code that we don't use for Redis currently, but that is part
of the library.
/* ----------------------- Debugging ------------------------*/
#define DICT_STATS_VECTLEN 50
#define DICT_STATS_VECTLEN 50
static void _dictPrintStatsHt(dictht *ht) {
static void _dictPrintStatsHt(dictht *ht) {
unsigned long i, slots = 0, chainlen, maxchainlen = 0;
unsigned long i, slots = 0, chainlen, maxchainlen = 0;
...
@@ -686,20 +701,6 @@ void dictPrintStats(dict *d) {
...
@@ -686,20 +701,6 @@ void dictPrintStats(dict *d) {
}
}
}
}
void
dictEnableResize
(
void
)
{
dict_can_resize
=
1
;
}
void
dictDisableResize
(
void
)
{
dict_can_resize
=
0
;
}
#if 0
/* The following are just example hash table types implementations.
* Not useful for Redis so they are commented out.
*/
/* ----------------------- StringCopy Hash Table Type ------------------------*/
/* ----------------------- StringCopy Hash Table Type ------------------------*/
static unsigned int _dictStringCopyHTHashFunction(const void *key)
static unsigned int _dictStringCopyHTHashFunction(const void *key)
...
...
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