From 5ba696892249f09dfc08b79c763987aaed9e7db4 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Wed, 12 Dec 2018 11:21:00 +0100 Subject: [PATCH] add comment to make intensions more clear --- src/backup/chunk_store.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/backup/chunk_store.rs b/src/backup/chunk_store.rs index fba15294..53bec858 100644 --- a/src/backup/chunk_store.rs +++ b/src/backup/chunk_store.rs @@ -139,6 +139,7 @@ impl ChunkStore { let mut lockfile_path = base.clone(); lockfile_path.push(".lock"); + // make sure only one process/thread/task can use it let lockfile = lock_file(lockfile_path, 10)?; Ok(ChunkStore {