From 94ddf20667bfb497082ebfaf058188414511dc68 Mon Sep 17 00:00:00 2001 From: ston3lu Date: Mon, 22 Sep 2025 13:24:10 +0000 Subject: [PATCH] fix: refresh mtime after remove file https://github.com/vitalif/vitastor/pull/95 By submitting this pull request, I accept Vitastor CLA --- src/nfs/nfs_kv_remove.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/nfs/nfs_kv_remove.cpp b/src/nfs/nfs_kv_remove.cpp index 6218dff4..fa70dd96 100644 --- a/src/nfs/nfs_kv_remove.cpp +++ b/src/nfs/nfs_kv_remove.cpp @@ -282,6 +282,10 @@ resume_6: }); return; resume_7: + if (!st->res) + { + st->self->parent->kvfs->touch_queue.insert(st->dir_ino); + } auto cb = std::move(st->cb); cb(st->res); return;