From 88a92ac95357112b5f11a5f02e63875588f7629c Mon Sep 17 00:00:00 2001 From: hzma Date: Thu, 9 Dec 2021 14:20:51 +0800 Subject: [PATCH] append add db compact for nb and sb db --- dist/images/ovn-is-leader.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dist/images/ovn-is-leader.sh b/dist/images/ovn-is-leader.sh index 116347418b3..82b235861d1 100755 --- a/dist/images/ovn-is-leader.sh +++ b/dist/images/ovn-is-leader.sh @@ -46,5 +46,7 @@ else kubectl label pod "$POD_NAME" -n "$POD_NAMESPACE" ovn-sb-leader- fi +set +e ovn-appctl -t /var/run/ovn/ovnnb_db.ctl ovsdb-server/compact ovn-appctl -t /var/run/ovn/ovnsb_db.ctl ovsdb-server/compact +echo ""