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

« back to all changes in this revision

Viewing changes to thread.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:
484
484
        threads[ii].stats.bytes_written = 0;
485
485
        threads[ii].stats.flush_cmds = 0;
486
486
        threads[ii].stats.conn_yields = 0;
 
487
        threads[ii].stats.auth_cmds = 0;
 
488
        threads[ii].stats.auth_errors = 0;
487
489
 
488
490
        for(sid = 0; sid < MAX_NUMBER_OF_SLAB_CLASSES; sid++) {
489
491
            threads[ii].stats.slab_stats[sid].set_cmds = 0;
512
514
    stats->bytes_read = 0;
513
515
    stats->flush_cmds = 0;
514
516
    stats->conn_yields = 0;
 
517
    stats->auth_cmds = 0;
 
518
    stats->auth_errors = 0;
515
519
 
516
520
    memset(stats->slab_stats, 0,
517
521
           sizeof(struct slab_stats) * MAX_NUMBER_OF_SLAB_CLASSES);
529
533
        stats->bytes_written += threads[ii].stats.bytes_written;
530
534
        stats->flush_cmds += threads[ii].stats.flush_cmds;
531
535
        stats->conn_yields += threads[ii].stats.conn_yields;
 
536
        stats->auth_cmds += threads[ii].stats.auth_cmds;
 
537
        stats->auth_errors += threads[ii].stats.auth_errors;
532
538
 
533
539
        for (sid = 0; sid < MAX_NUMBER_OF_SLAB_CLASSES; sid++) {
534
540
            stats->slab_stats[sid].set_cmds +=