Sfoglia il codice sorgente

commit 5a34c8290e4fb61981b15938a3868fd6b65f7cef
Author: Lee Tucker <ltucker@yahoo-inc.com>
Date: Thu Jul 30 17:40:13 2009 -0700

Applying patch 2372946.5113.patch


git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.20-security-patches@1076911 13f79535-47bb-0310-9956-ffa450edef68

Owen O'Malley 14 anni fa
parent
commit
7ec3d8ed5f
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/contrib/hod/support/logcondense.py

+ 1 - 1
src/contrib/hod/support/logcondense.py

@@ -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: