forked from memcached/memcached
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
multiple cleanups/refactoring, see ChangeLog
git-svn-id: http://code.sixapart.com/svn/memcached/trunk/server@468 b0b603af-a30f-0410-a34e-baf09ae79d0b
- Loading branch information
Showing
11 changed files
with
390 additions
and
320 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,27 @@ | ||
2007-03-05 Paul Lindner <[email protected]> | ||
* Fix a number of places where (s)printf calls were using unsigned | ||
or signed formats that did not match their arguments. | ||
|
||
* Add support for stdbool.h and stdint.h to use the bool and | ||
uint8_t types. | ||
|
||
* Major refactoring - move API calls for assoc/items/slabs to | ||
their own individual header files. Add apropriate const and | ||
static declarations as appropriate. | ||
|
||
* Avoid type-punning. Do a more efficient realloc inside the | ||
conn_shrink routine. | ||
|
||
* Fix overflow bug where uninitialized access to slabclass caused | ||
size-0 mallocs during slab preallocation. | ||
|
||
* Use EXIT_SUCCESS/EXIT_FAILURE constants. | ||
|
||
* Convert some sprintf calls to snprintf to protect against | ||
buffer overflows. | ||
|
||
* Explicitly compare against NULL or zero in many places. | ||
|
||
2006-12-23 | ||
* fix expirations of items set with absolute expiration times in | ||
the past, before the server's start time. bug was introduced in | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/* associative array */ | ||
void assoc_init(void); | ||
item *assoc_find(const char *key, const size_t nkey); | ||
int assoc_insert(item *item); | ||
void assoc_delete(const char *key, const size_t nkey); | ||
void assoc_move_next_bucket(void); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* See items.c */ | ||
void item_init(void); | ||
/*@null@*/ | ||
item *item_alloc(char *key, const size_t nkey, const int flags, const rel_time_t exptime, const int nbytes); | ||
void item_free(item *it); | ||
bool item_size_ok(char *key, const size_t nkey, const int flags, const int nbytes); | ||
|
||
int item_link(item *it); /* may fail if transgresses limits */ | ||
void item_unlink(item *it); | ||
void item_remove(item *it); | ||
void item_update(item *it); /* update LRU time to current and reposition */ | ||
int item_replace(item *it, item *new_it); | ||
|
||
/*@null@*/ | ||
char *item_cachedump(const unsigned int slabs_clsid, const unsigned int limit, unsigned int *bytes); | ||
void item_stats(char *buffer, const int buflen); | ||
|
||
/*@null@*/ | ||
char *item_stats_sizes(int *bytes); | ||
void item_flush_expired(void); |
Oops, something went wrong.