You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by ma...@apache.org on 2015/05/27 04:52:29 UTC
[3/5] incubator-ranger git commit: Removing unused globalCounter of
messages
Removing unused globalCounter of messages
Project: http://git-wip-us.apache.org/repos/asf/incubator-ranger/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ranger/commit/5596d2ec
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ranger/tree/5596d2ec
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ranger/diff/5596d2ec
Branch: refs/heads/tag-policy
Commit: 5596d2ecda5e50a3d3883b97d5ec3eac298df6f9
Parents: 0d84793
Author: Don Bosco Durai <bo...@apache.org>
Authored: Tue May 26 13:55:07 2015 -0700
Committer: Don Bosco Durai <bo...@apache.org>
Committed: Tue May 26 13:55:07 2015 -0700
----------------------------------------------------------------------
.../java/org/apache/ranger/plugin/service/RangerBasePlugin.java | 2 --
1 file changed, 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/5596d2ec/agents-common/src/main/java/org/apache/ranger/plugin/service/RangerBasePlugin.java
----------------------------------------------------------------------
diff --git a/agents-common/src/main/java/org/apache/ranger/plugin/service/RangerBasePlugin.java b/agents-common/src/main/java/org/apache/ranger/plugin/service/RangerBasePlugin.java
index 7af103d..574dd5b 100644
--- a/agents-common/src/main/java/org/apache/ranger/plugin/service/RangerBasePlugin.java
+++ b/agents-common/src/main/java/org/apache/ranger/plugin/service/RangerBasePlugin.java
@@ -310,7 +310,6 @@ public class RangerBasePlugin {
log = new LogHistory();
logHistoryList.put(message, log);
}
- log.lifetimeCounter++;
if ((System.currentTimeMillis() - log.lastLogTime) > logInterval) {
log.lastLogTime = System.currentTimeMillis();
int counter = log.counter;
@@ -329,7 +328,6 @@ public class RangerBasePlugin {
static class LogHistory {
long lastLogTime = 0;
int counter=0;
- int lifetimeCounter = 0;
}
}