type error in ServerMap.copy? #1785

Closed
opened 2012-07-02 19:19:36 +00:00 by davidsarah · 3 comments
davidsarah commented 2012-07-02 19:19:36 +00:00
Owner

[ServerMap]source:src/allmydata/mutable/servermap.py@5478#L122 has an update_data attribute that is not set on the copy returned by ServerMap.copy. I don't know whether this case is ever exercised.

[ServerMap]source:src/allmydata/mutable/servermap.py@5478#L122 has an `update_data` attribute that is not set on the copy returned by `ServerMap.copy`. I don't know whether this case is ever exercised.
tahoe-lafs added the
code-mutable
normal
defect
1.9.1
labels 2012-07-02 19:19:36 +00:00
tahoe-lafs added this to the 1.10.0 milestone 2012-07-02 19:19:36 +00:00

Our plan is to add:

        s.update_data = copy.deepcopy(self.update_data)

to line 136 in mutable/servermap.py.

It's probably unused, and the update_data contains only inert data (e.g. no IServer references), so it should be safe, and should protect us from future confusion.

Our plan is to add: ``` s.update_data = copy.deepcopy(self.update_data) ``` to line 136 in `mutable/servermap.py`. It's probably unused, and the `update_data` contains only inert data (e.g. no `IServer` references), so it should be safe, and should protect us from future confusion.
Brian Warner <warner@lothar.com> commented 2013-04-09 11:27:32 +00:00
Author
Owner

In changeset:4751a468408d8cc8:

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.
In changeset:4751a468408d8cc8: ``` 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. ```
tahoe-lafs added the
fixed
label 2013-04-09 11:27:32 +00:00
daira commented 2013-04-10 01:58:54 +00:00
Author
Owner

Reviewed, +1.

Reviewed, +1.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Reference: tahoe-lafs/trac-2024-07-25#1785
No description provided.