From c7f7236b886079d2a8b8977d314efd337683dc45 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 2 Jun 2022 17:48:08 +0200 Subject: [PATCH] datastore: more concise comment Signed-off-by: Thomas Lamprecht --- pbs-datastore/src/datastore.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pbs-datastore/src/datastore.rs b/pbs-datastore/src/datastore.rs index 93a5b749..18136c5b 100644 --- a/pbs-datastore/src/datastore.rs +++ b/pbs-datastore/src/datastore.rs @@ -145,8 +145,7 @@ impl DataStore { let mut map = DATASTORE_MAP.lock().unwrap(); let entry = map.get(name); - // reuse chunk_store, we only want to reload the datastore config, and the path - // is normally not editable and requires a restart of the proxy + // reuse chunk store so that we keep using the same process locker instance! let chunk_store = if let Some(datastore) = &entry { if datastore.last_generation == generation && now < (datastore.last_update + 60) { return Ok(Arc::new(Self {