File tree Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -59,15 +59,8 @@ namespace ccf::kv
59
59
60
60
for (auto it = changes.begin (); it != changes.end (); ++it)
61
61
{
62
- bool changeset_has_writes = it->second .changeset ->has_writes ();
63
- if (changeset_has_writes)
64
- {
65
- has_writes = true ;
66
- }
67
- if (changeset_has_writes || track_read_versions)
68
- {
69
- it->second .map ->lock ();
70
- }
62
+ has_writes |= it->second .changeset ->has_writes ();
63
+ it->second .map ->lock ();
71
64
}
72
65
73
66
bool ok = true ;
@@ -177,10 +170,7 @@ namespace ccf::kv
177
170
178
171
for (auto it = changes.begin (); it != changes.end (); ++it)
179
172
{
180
- if (it->second .changeset ->has_writes () || track_read_versions)
181
- {
182
- it->second .map ->unlock ();
183
- }
173
+ it->second .map ->unlock ();
184
174
}
185
175
186
176
if (!ok)
You can’t perform that action at this time.
0 commit comments