Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
davies committed Sep 24, 2014
1 parent cba9463 commit 7a56c24
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion python/pyspark/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@ def dump_profiles(self, path):
"""
if not os.path.exists(path):
os.makedirs(path)
for id, acc, _ in self._created_profiles:
for id, acc, _ in self._profile_stats:
stats = acc.value
if stats:
p = os.path.join(path, "rdd_%d.pstats" % id)
Expand Down
1 change: 0 additions & 1 deletion python/pyspark/rdd.py
Original file line number Diff line number Diff line change
Expand Up @@ -2025,7 +2025,6 @@ class PipelinedRDD(RDD):
>>> rdd.flatMap(lambda x: [x, x]).reduce(add)
20
"""
_created_profiles = []

def __init__(self, prev, func, preservesPartitioning=False):
if not isinstance(prev, PipelinedRDD) or not prev._is_pipelinable():
Expand Down

0 comments on commit 7a56c24

Please sign in to comment.