~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
  • mto: (3.3.3 squeeze) (1.1.7 upstream)
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: james.westby@ubuntu.com-20100512114122-wpynzm9kb1irw1um
Import upstream version 1.4.5

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 +=