Skip to content

Commit

Permalink
add missing DestroyHandle request completion
Browse files Browse the repository at this point in the history
  • Loading branch information
WilyTiger committed Sep 25, 2024
1 parent 470afdc commit e64e861
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cloud/filestore/libs/vfs_fuse/fs_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -279,10 +279,12 @@ void TFileSystem::ProcessHandleOpsQueue()
RequestStats->RequestStarted(Log, *callContext);

Session->DestroyHandle(callContext, std::move(request))
.Subscribe([this, ptr = weak_from_this()] (const auto& future) {
.Subscribe([=, ptr = weak_from_this()] (const auto& future) {
const auto& response = future.GetValue();
const auto& error = response.GetError();
if (auto self = ptr.lock()) {
RequestStats->RequestCompleted(*callContext, error);

// If destroy request failed, we need to retry it.
// Otherwise, remove it from queue.
if (HasError(error)) {
Expand Down

0 comments on commit e64e861

Please sign in to comment.