wala-rust

Unnamed repository; edit this file 'description' to name the repository.
Info | Log | Files | Refs | README | LICENSE

commit e88c7f59ca3842e43730170520c2c89da764c333
parent 4b073fc37b35247eb2c74c9ead9f0a4db0875ed3
Author: lash <dev@holbrook.no>
Date:   Thu, 22 Sep 2022 08:53:09 +0000

Log symlink unlink

Diffstat:
Msrc/record.rs | 9++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/src/record.rs b/src/record.rs @@ -239,7 +239,14 @@ pub fn put_mutable(path: &Path, mut f: impl Read, expected_size: usize, key: &Re let record = put_immutable(path, f, expected_size); match record { Ok(v) => { - remove_file(&link_path_buf); + match remove_file(&link_path_buf) { + Ok(r) => { + info!("unlinked mutable ref on {:?}", &e); + }, + Err(e) => { + debug!("clear symlink failed {:?}", &e); + } + }; symlink(&v.path, &link_path_buf); let r = Record{ digest: pointer,