aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/file-cache.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-10-21 09:40:07 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-10-21 09:40:07 +0200
commite5efed8e25180b9d009edf2a06e5151db107e883 (patch)
tree80fda359aff5bee7b25e746d35518a6389cd5eca /libbuild2/file-cache.cxx
parent51068e16c6486a60fa54591972fcca3821341c05 (diff)
Add clarifying comment
Diffstat (limited to 'libbuild2/file-cache.cxx')
-rw-r--r--libbuild2/file-cache.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/libbuild2/file-cache.cxx b/libbuild2/file-cache.cxx
index 1c1424f..caaf40c 100644
--- a/libbuild2/file-cache.cxx
+++ b/libbuild2/file-cache.cxx
@@ -28,6 +28,8 @@ namespace build2
if (!comp_path_.empty ())
try_rmfile_ignore_error (comp_path_);
+ // Note: state remains uninit until write::close().
+
pin ();
return write (*this);
}