From 5f18496c049f6867ec99e741d72bade03bc2027b Mon Sep 17 00:00:00 2001 From: ston3lu Date: Fri, 19 Sep 2025 09:11:16 +0000 Subject: [PATCH] change delete operation to set for restoring direntry in nfs_kv_remove https://github.com/vitalif/vitastor/pull/95 By submitting this pull request, I accept Vitastor CLA --- src/nfs/nfs_kv_remove.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nfs/nfs_kv_remove.cpp b/src/nfs/nfs_kv_remove.cpp index 7b4ab368..6218dff4 100644 --- a/src/nfs/nfs_kv_remove.cpp +++ b/src/nfs/nfs_kv_remove.cpp @@ -199,7 +199,7 @@ resume_4: else { // Not OK, restore direntry - st->self->parent->db->del(kv_direntry_key(st->dir_ino, st->filename), [st](int res) + st->self->parent->db->set(kv_direntry_key(st->dir_ino, st->filename), st->direntry_text, [st](int res) { st->res2 = res; nfs_kv_continue_delete(st, 5);