mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-31 08:25:35 +00:00
ServerMap.copy(): deepcopy .update_data too. Closes #1785.
This was apparently unused, but good to copy for completeness. Tests pass with and without the change.
This commit is contained in:
parent
f9335892f2
commit
4751a46840
@ -1,5 +1,5 @@
|
||||
|
||||
import sys, time
|
||||
import sys, time, copy
|
||||
from zope.interface import implements
|
||||
from itertools import count
|
||||
from twisted.internet import defer
|
||||
@ -134,6 +134,7 @@ class ServerMap:
|
||||
s._bad_shares = self._bad_shares.copy() # tuple->str
|
||||
s._last_update_mode = self._last_update_mode
|
||||
s._last_update_time = self._last_update_time
|
||||
s.update_data = copy.deepcopy(self.update_data)
|
||||
return s
|
||||
|
||||
def get_reachable_servers(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user