You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by jp...@apache.org on 2015/12/18 05:49:37 UTC

trafficserver git commit: TS-4071: Unused mutex Diags::rotate_lock

Repository: trafficserver
Updated Branches:
  refs/heads/master b9bac0f28 -> 9c9cd7cd5


TS-4071: Unused mutex Diags::rotate_lock

Removed the unused mutex. This closes #382.


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/9c9cd7cd
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/9c9cd7cd
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/9c9cd7cd

Branch: refs/heads/master
Commit: 9c9cd7cd53f20d81a7993a910ace8464f2ccd99e
Parents: b9bac0f
Author: Daniel Xu <dl...@yahoo.com>
Authored: Wed Dec 16 16:23:55 2015 -0600
Committer: James Peach <jp...@apache.org>
Committed: Thu Dec 17 20:49:24 2015 -0800

----------------------------------------------------------------------
 lib/ts/Diags.cc | 1 -
 lib/ts/Diags.h  | 1 -
 2 files changed, 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/9c9cd7cd/lib/ts/Diags.cc
----------------------------------------------------------------------
diff --git a/lib/ts/Diags.cc b/lib/ts/Diags.cc
index 518b024..7e5747b 100644
--- a/lib/ts/Diags.cc
+++ b/lib/ts/Diags.cc
@@ -125,7 +125,6 @@ Diags::Diags(const char *bdt, const char *bat, BaseLogFile *_diags_log)
 
   cleanup_func = NULL;
   ink_mutex_init(&tag_table_lock, "Diags::tag_table_lock");
-  ink_mutex_init(&rotate_lock, "Diags::rotate_lock");
 
   ////////////////////////////////////////////////////////
   // initialize the default, base debugging/action tags //

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/9c9cd7cd/lib/ts/Diags.h
----------------------------------------------------------------------
diff --git a/lib/ts/Diags.h b/lib/ts/Diags.h
index 7f3210b..9f32465 100644
--- a/lib/ts/Diags.h
+++ b/lib/ts/Diags.h
@@ -256,7 +256,6 @@ public:
 
 private:
   mutable ink_mutex tag_table_lock; // prevents reconfig/read races
-  mutable ink_mutex rotate_lock;    // prevents rotation races
   DFA *activated_tags[2];           // 1 table for debug, 1 for action