From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id 751481FF179 for ; Wed, 7 Jan 2026 13:46:22 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 7C442CB0A; Wed, 7 Jan 2026 13:47:38 +0100 (CET) Message-ID: Date: Wed, 7 Jan 2026 13:47:33 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Nicolas Frey To: pbs-devel@lists.proxmox.com References: <20260105103407.63587-1-n.frey@proxmox.com> Content-Language: en-US In-Reply-To: <20260105103407.63587-1-n.frey@proxmox.com> X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1767790017130 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.797 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] superseded: [PATCH proxmox-backup 1/1] fix: s3: make s3_refresh apihandler sync 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="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pbs-devel-bounces@lists.proxmox.com Sender: "pbs-devel" Superseded-by: https://lore.proxmox.com/pbs-devel/20260107124604.159625-1-n.frey@proxmox.com/T/#u On 1/5/26 11:34 AM, Nicolas Frey wrote: > fixes regression from 524cf1e that made `datastore::s3_refresh` sync > but did not change the ApiHandler matching part here > > This would result in a panic every time an s3-refresh was initiated > > Fixes: https://forum.proxmox.com/threads/178655 > Signed-off-by: Nicolas Frey > --- > src/bin/proxmox_backup_manager/datastore.rs | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/bin/proxmox_backup_manager/datastore.rs b/src/bin/proxmox_backup_manager/datastore.rs > index 57b4ca29..5c65c5ec 100644 > --- a/src/bin/proxmox_backup_manager/datastore.rs > +++ b/src/bin/proxmox_backup_manager/datastore.rs > @@ -339,7 +339,7 @@ async fn s3_refresh(mut param: Value, rpcenv: &mut dyn RpcEnvironment) -> Result > > let info = &api2::admin::datastore::API_METHOD_S3_REFRESH; > let result = match info.handler { > - ApiHandler::Async(handler) => (handler)(param, info, rpcenv).await?, > + ApiHandler::Sync(handler) => (handler)(param, info, rpcenv)?, > _ => unreachable!(), > }; > _______________________________________________ pbs-devel mailing list pbs-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel