cargo fmt
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
e9b9f33aee
commit
42fb291c7c
|
@ -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.
|
||||
|
|
|
@ -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) => {
|
||||
|
|
|
@ -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();
|
||||
},
|
||||
},
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue