Skip to content

Commit

Permalink
Don't recalculate parents dict for zero-comment links.
Browse files Browse the repository at this point in the history
  • Loading branch information
spladug committed Nov 30, 2011
1 parent bf88055 commit 3737592
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion r2/r2/lib/comment_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ def link_comments_and_sort(link_id, sort):
% link_id)
parents = {}

if not parents:
if not parents and len(cids) > 0:
with g.make_lock(lock_key(link_id)):
# reload from the cache so the sorter and parents are
# maximally consistent
Expand Down

0 comments on commit 3737592

Please sign in to comment.