Skip to content
Snippets Groups Projects
Commit 980215fb authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

note a problem with this function that I don't want to deal with now

parent 5c6bcd9b
No related branches found
No related tags found
1 merge request!249Improve lease management for mutables
...@@ -211,6 +211,10 @@ def get_sharenums(tw_vectors): ...@@ -211,6 +211,10 @@ def get_sharenums(tw_vectors):
:return set[int]: The share numbers which the given test/write vectors would write to. :return set[int]: The share numbers which the given test/write vectors would write to.
""" """
return set( return set(
# This misses cases where `data` is empty but `new_length` is
# non-None, non-0.
#
# Related to #222.
sharenum for (sharenum, (test, data, new_length)) in tw_vectors.items() if data sharenum for (sharenum, (test, data, new_length)) in tw_vectors.items() if data
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment