From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id E3EE31FF15F for ; Mon, 2 Dec 2024 14:04:49 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 01A4617D16; Mon, 2 Dec 2024 14:04:55 +0100 (CET) From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= To: pbs-devel@lists.proxmox.com Date: Mon, 2 Dec 2024 14:04:10 +0100 Message-Id: <20241202130412.1290616-3-f.gruenbichler@proxmox.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20241202130412.1290616-1-f.gruenbichler@proxmox.com> References: <20241202130412.1290616-1-f.gruenbichler@proxmox.com> MIME-Version: 1.0 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.048 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pbs-devel] [PATCH proxmox v2 2/4] rest-server: close race window when updating worker task count X-BeenThere: pbs-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Backup Server development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox Backup Server development discussion Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: pbs-devel-bounces@lists.proxmox.com Sender: "pbs-devel" dGhpcyBtaW1pY3MgaG93IHRoZSBjb3VudCBpcyB1cGRhdGVkIHdoZW4gc3Bhd25pbmcgYSBuZXcg dGFzayAtIHRoZSBsb2NrIHNjb3BlCm5lZWRzIHRvIGNvdmVyIHRoZSBjb3VudCB1cGRh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ZXJzKFNvbWUoJnVwaWQpKTsKICAgICAgICAgaWYgcmVzLmlzX2VycigpIHsKICAgICAg ICAgICAgIC8vIG5lZWRlZCB0byB1bmRvIHRoZSBpbnNlcnRpb24gaW50byBXT1JLRVJfVEFTS19M SVNUIGFib3ZlCkBAIC0xMDIyLDggKzEwMjMsMTEgQEAgaW1wbCBXb3JrZXJUYXNrIHsKICAgICAg ICAgc2VsZi5sb2dfbWVzc2FnZShzdGF0ZS5yZXN1bHRfdGV4dCgpKTsKIAogICAgICAgICBXT1JL RVJfVEFTS19MSVNULmxvY2soKS51bndyYXAoKS5yZW1vdmUoJnNlbGYudXBpZC50YXNrX2lkKTsK KyAgICAgICAgLy8gdGhpcyB3YW50cyB0byBhY2Nlc3MgV09SS0VSX1RBU0tfTElTVCwgc28gd2Ug bmVlZCB0byBkcm9wIHRoZSBsb2NrIGFib3ZlCiAgICAgICAgIGxldCBfID0gc2VsZi5zZXR1cC51 cGRhdGVfYWN0aXZlX3dvcmtlcnMoTm9uZSk7Ci0gICAgICAgIHNldF93b3JrZXJfY291bnQoV09S S0VSX1RBU0tfTElTVC5sb2NrKCkudW53cmFwKCkubGVuKCkpOworICAgICAgICAvLyByZS1hY3F1 aXJlIHRoZSBsb2NrIGFuZCBob2xkIGl0IHdoaWxlIHVwZGF0aW5nIHRoZSBjb3VudAorICAgICAg ICBsZXQgbG9jayA9IFdPUktFUl9UQVNLX0xJU1QubG9jaygpLnVud3JhcCgpOworICAgICAgICBz ZXRfd29ya2VyX2NvdW50KGxvY2subGVuKCkpOwogICAgIH0KIAogICAgIC8vLyBMb2cgYSBtZXNz YWdlLgotLSAKMi4zOS41CgoKCl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fCnBicy1kZXZlbCBtYWlsaW5nIGxpc3QKcGJzLWRldmVsQGxpc3RzLnByb3htb3gu Y29tCmh0dHBzOi8vbGlzdHMucHJveG1veC5jb20vY2dpLWJpbi9tYWlsbWFuL2xpc3RpbmZvL3Bi cy1kZXZlbAo=