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
|
/// NOTE: one must *not* do any IO operations when only helding this Op state
|
||||||
Lookup,
|
Lookup,
|
||||||
|
|
||||||
// GarbageCollect or Delete?
|
// GarbageCollect or Delete?
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -43,7 +42,6 @@ pub enum MaintenanceType {
|
|||||||
// - Add "GarbageCollection" or "DeleteOnly" as type and track GC (or all deletes) as separate
|
// - 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
|
// operation, so that one can enable a mode where nothing new can be added but stuff can be
|
||||||
// cleaned
|
// cleaned
|
||||||
|
|
||||||
/// Only read operations are allowed on the datastore.
|
/// Only read operations are allowed on the datastore.
|
||||||
ReadOnly,
|
ReadOnly,
|
||||||
/// Neither read nor write operations are allowed on the datastore.
|
/// 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)) {
|
let datastore = match DataStore::lookup_datastore(&store, Some(Operation::Lookup)) {
|
||||||
Ok(datastore) => datastore,
|
Ok(datastore) => datastore,
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
|
@ -483,7 +483,9 @@ Ext.define('PBS.DataStoreContent', {
|
|||||||
datastore: view.datastore,
|
datastore: view.datastore,
|
||||||
namespace: view.namespace ?? '',
|
namespace: view.namespace ?? '',
|
||||||
listeners: {
|
listeners: {
|
||||||
destroy: () => view.down('pbsNamespaceSelector').store?.load(),
|
destroy: () => {
|
||||||
|
view.down('pbsNamespaceSelector').store?.load();
|
||||||
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user