diff --git a/pbs-api-types/src/maintenance.rs b/pbs-api-types/src/maintenance.rs index 2102cf2c..5bbba043 100644 --- a/pbs-api-types/src/maintenance.rs +++ b/pbs-api-types/src/maintenance.rs @@ -29,7 +29,6 @@ pub enum Operation { /// /// NOTE: one must *not* do any IO operations when only helding this Op state Lookup, - // GarbageCollect or Delete? } @@ -43,7 +42,6 @@ pub enum MaintenanceType { // - Add "GarbageCollection" or "DeleteOnly" as type and track GC (or all deletes) as separate // operation, so that one can enable a mode where nothing new can be added but stuff can be // cleaned - /// Only read operations are allowed on the datastore. ReadOnly, /// Neither read nor write operations are allowed on the datastore. diff --git a/src/bin/proxmox-backup-proxy.rs b/src/bin/proxmox-backup-proxy.rs index 91b38336..659f7b4a 100644 --- a/src/bin/proxmox-backup-proxy.rs +++ b/src/bin/proxmox-backup-proxy.rs @@ -597,7 +597,8 @@ async fn schedule_datastore_garbage_collection() { } }; - { // limit datastore scope due to Op::Lookup + { + // limit datastore scope due to Op::Lookup let datastore = match DataStore::lookup_datastore(&store, Some(Operation::Lookup)) { Ok(datastore) => datastore, Err(err) => { diff --git a/www/datastore/Content.js b/www/datastore/Content.js index 635c820b..a7870efc 100644 --- a/www/datastore/Content.js +++ b/www/datastore/Content.js @@ -483,7 +483,9 @@ Ext.define('PBS.DataStoreContent', { datastore: view.datastore, namespace: view.namespace ?? '', listeners: { - destroy: () => view.down('pbsNamespaceSelector').store?.load(), + destroy: () => { + view.down('pbsNamespaceSelector').store?.load(); + }, }, }); },