hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From omal...@apache.org
Subject svn commit: r1076911 - /hadoop/common/branches/branch-0.20-security-patches/src/contrib/hod/support/logcondense.py
Date Fri, 04 Mar 2011 01:08:12 GMT
Author: omalley
Date: Fri Mar  4 01:08:12 2011
New Revision: 1076911

URL: http://svn.apache.org/viewvc?rev=1076911&view=rev
Log:
commit 5a34c8290e4fb61981b15938a3868fd6b65f7cef
Author: Lee Tucker <ltucker@yahoo-inc.com>
Date:   Thu Jul 30 17:40:13 2009 -0700

    Applying patch 2372946.5113.patch

Modified:
    hadoop/common/branches/branch-0.20-security-patches/src/contrib/hod/support/logcondense.py

Modified: hadoop/common/branches/branch-0.20-security-patches/src/contrib/hod/support/logcondense.py
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20-security-patches/src/contrib/hod/support/logcondense.py?rev=1076911&r1=1076910&r2=1076911&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.20-security-patches/src/contrib/hod/support/logcondense.py
(original)
+++ hadoop/common/branches/branch-0.20-security-patches/src/contrib/hod/support/logcondense.py
Fri Mar  4 01:08:12 2011
@@ -130,7 +130,7 @@ def runcondense():
       # file name format: <prefix>/<user>/hod-logs/<jobid>/[0-9]*-[jobtracker|tasktracker|datanode|namenode|]-hostname-YYYYMMDDtime-random.tar.gz
       # first strip prefix:
       if filename.startswith(options.log):
-        filename = filename.lstrip(options.log)
+        filename = filename[len(options.log):]
         if not filename.startswith('/'):
           filename = '/' + filename
       else:



Mime
View raw message