~ubuntu-branches/ubuntu/quantal/memcached/quantal

« back to all changes in this revision

Viewing changes to items.h

  • Committer: Bazaar Package Importer
  • Author(s): David Martínez Moreno
  • Date: 2009-10-16 15:09:43 UTC
  • mfrom: (1.1.6 upstream) (3.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20091016150943-0rhh8x206ebgwzeu
Tags: 1.4.2-1
* New upstream release, primarily bugfixes, some of them critical, hence
  the urgency:
  - Reject keys larger than 250 bytes in the binary protocol.
  - Bounds checking on stats cachedump.
  - Binary protocol set+cas wasn't returning a new cas ID.
  - Binary quitq didn't actually close the connection
  - Slab boundary checking cleanup (bad logic in unreachable code)
  - Get hit memory optimizations
  - Disallow -t options that cause the server to not work
  - Killed off incomplete slab rebalance feature.
* debian/patches:
  - 01_init_script_compliant_with_LSB.patch: Remade as upstream applied a
    whitespace cleanup script that broke the patch.
  - 02_manpage_additions.patch: Added missing parameters to the memcached
    manpage.
* Removed TODO from debian/docs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* See items.c */
2
 
void item_init(void);
3
2
uint64_t get_cas_id(void);
4
3
 
5
4
/*@null@*/
15
14
 
16
15
/*@null@*/
17
16
char *do_item_cachedump(const unsigned int slabs_clsid, const unsigned int limit, unsigned int *bytes);
18
 
char *do_item_stats(int *bytes);
19
 
 
 
17
void do_item_stats(ADD_STAT add_stats, void *c);
20
18
/*@null@*/
21
 
char *do_item_stats_sizes(int *bytes);
 
19
void do_item_stats_sizes(ADD_STAT add_stats, void *c);
22
20
void do_item_flush_expired(void);
23
 
item *item_get(const char *key, const size_t nkey);
24
21
 
25
 
item *do_item_get_notedeleted(const char *key, const size_t nkey, bool *delete_locked);
 
22
item *do_item_get(const char *key, const size_t nkey);
26
23
item *do_item_get_nocheck(const char *key, const size_t nkey);
 
24
void item_stats_reset(void);
 
25
extern pthread_mutex_t cache_lock;