From c3b7fc3182287f9e172cacb5e16628a920155995 Mon Sep 17 00:00:00 2001 From: Thiery Ouattara Date: Mon, 24 Feb 2020 09:04:00 +0000 Subject: [PATCH] server: using thread queue to unlink brick edge 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 --- api/server/graph.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/api/server/graph.cc b/api/server/graph.cc index b064fd2c9..74d416b58 100644 --- a/api/server/graph.cc +++ b/api/server/graph.cc @@ -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);