Skip to content

Commit

Permalink
server: using thread queue to unlink brick edge
Browse files Browse the repository at this point in the history
Using link and unlink on two different thread, cause some problem
This fix use the same thread to link and unlink brick edge.

Signed-off-by: Thiery Ouattara <[email protected]>
  • Loading branch information
outscale-toa committed Feb 24, 2020
1 parent ec83d14 commit c3b7fc3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions api/server/graph.cc
Original file line number Diff line number Diff line change
Expand Up @@ -823,11 +823,7 @@ bool Graph::NicAdd(app::Nic *nic_) {
}

BrickShrPtr head1 = vni.nics.begin()->second.head;
if (pg_brick_unlink_edge(vtep_.get(), head1.get(),
&app::pg_error) < 0) {
PG_ERROR_(app::pg_error);
return false;
}
unlink_edge(vtep_, head1);
link(vtep_, vni.sw);
add_vni(vtep_, vni.sw, nic.vni);
link(vni.sw, head1);
Expand Down

0 comments on commit c3b7fc3

Please sign in to comment.