~yolanda.robla/ubuntu/trusty/memcached/add_distribution

« back to all changes in this revision

Viewing changes to stats.c

  • Committer: Bazaar Package Importer
  • Author(s): David Martínez Moreno
  • Date: 2010-05-12 11:41:22 UTC
  • mfrom: (1.1.7 upstream) (3.3.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100512114122-e2dphwiezevuny1t
Tags: 1.4.5-1
* New upstream release.  Main changes since 1.4.2 are:
  New features:
  - Support for SASL authentication.
  - New script damemtop - a memcached top.
  - Slab optimizations.
  - New stats, for reclaimed memory and SASL events.
  Bugs fixed:
  - Malicious input can crash server (CVE-2010-1152).  Closes: #579913.
  - Fixed several problems with slab handling and growth.
  - Provide better error reporting.
  - Fix get stats accounting.
  - Fixed backwards compatibility with delete 0.
  - Documentation fixes.
  - Various build fixes, among others, fixed FTBFS with gcc-4.5 (closes:
    #565033).
* Refreshed and renamed 01_init_script_compliant_with_LSB.patch.
* Fixed lintian warnings by adding $remote_fs to init.d script.
* Removed non-existent document (doc/memory_management.txt).
* debian/control: Bumped Standards-Version to 3.8.4 (no changes).

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
    PREFIX_STATS *pfs;
69
69
    uint32_t hashval;
70
70
    size_t length;
 
71
    bool bailout = true;
71
72
 
72
73
    assert(key != NULL);
73
74
 
74
 
    for (length = 0; length < nkey && key[length] != '\0'; length++)
75
 
        if (key[length] == settings.prefix_delimiter)
 
75
    for (length = 0; length < nkey && key[length] != '\0'; length++) {
 
76
        if (key[length] == settings.prefix_delimiter) {
 
77
            bailout = false;
76
78
            break;
 
79
        }
 
80
    }
 
81
 
 
82
    if (bailout) {
 
83
        return NULL;
 
84
    }
77
85
 
78
86
    hashval = hash(key, length, 0) % PREFIX_HASH_SIZE;
79
87