Guest User

Untitled

a guest
Feb 20th, 2018
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. commit 108d2ecb404e07e24f889cbc65ccb7c1a2b54a3a
  2. Author: HIROSE Masaaki <hirose@sag14.klab.org>
  3. Date: Thu Sep 18 16:15:28 2008 +0900
  4.  
  5. to count get_cmds
  6.  
  7. diff --git a/memcached.c b/memcached.c
  8. index 6f81210..b1f858f 100644
  9. --- a/memcached.c
  10. +++ b/memcached.c
  11. @@ -1138,6 +1138,9 @@ static void process_bin_get(conn *c) {
  12. fprintf(stderr, "\n");
  13. }
  14.  
  15. + STATS_LOCK();
  16. + stats.get_cmds++;
  17. + STATS_UNLOCK();
  18. it = item_get(key, nkey);
  19. if (it) {
  20. /* the length has two unnecessary bytes ("\r\n") */
Add Comment
Please, Sign In to add comment