datastore: more concise comment
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
fdefe192ac
commit
c7f7236b88
|
@ -145,8 +145,7 @@ impl DataStore {
|
||||||
let mut map = DATASTORE_MAP.lock().unwrap();
|
let mut map = DATASTORE_MAP.lock().unwrap();
|
||||||
let entry = map.get(name);
|
let entry = map.get(name);
|
||||||
|
|
||||||
// reuse chunk_store, we only want to reload the datastore config, and the path
|
// reuse chunk store so that we keep using the same process locker instance!
|
||||||
// is normally not editable and requires a restart of the proxy
|
|
||||||
let chunk_store = if let Some(datastore) = &entry {
|
let chunk_store = if let Some(datastore) = &entry {
|
||||||
if datastore.last_generation == generation && now < (datastore.last_update + 60) {
|
if datastore.last_generation == generation && now < (datastore.last_update + 60) {
|
||||||
return Ok(Arc::new(Self {
|
return Ok(Arc::new(Self {
|
||||||
|
|
Loading…
Reference in New Issue