]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/admin: remove the unix domain socket file for asock when stopping 35154/head
authorKefu Chai <kchai@redhat.com>
Wed, 20 May 2020 16:12:19 +0000 (00:12 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 20 May 2020 16:19:04 +0000 (00:19 +0800)
should remove the leftovers when stopping

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/admin/admin_socket.cc

index 238ddc9989603235b8c0ff60cb1174d3cd97faa3..db21e29f1e08173da9f7f3dbb193b5bf203255da 100644 (file)
@@ -256,6 +256,8 @@ seastar::future<> AdminSocket::start(const std::string& path)
           }
         });
       });
+    }).finally([path] {
+      return seastar::remove_file(path);
     });
   return seastar::make_ready_future<>();
 }