fix missing function name
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good

This commit is contained in:
Scott E. Graves 2025-04-02 11:09:05 -05:00
parent bf2bdd1b5d
commit 883de836c6
3 changed files with 192 additions and 190 deletions

View File

@ -374,13 +374,13 @@ auto fuse_base::init_impl(struct fuse_conn_info *conn) -> void * {
if (not utils::file::change_to_process_directory()) { if (not utils::file::change_to_process_directory()) {
utils::error::raise_error(function_name, utils::error::raise_error(function_name,
"failed to change to process directory"); "failed to change to process directory");
event_system::instance().raise<unmount_requested>(); event_system::instance().raise<unmount_requested>(function_name);
return this; return this;
} }
if (not console_enabled_ && not repertory::project_initialize()) { if (not console_enabled_ && not repertory::project_initialize()) {
utils::error::raise_error(function_name, "failed to initialize repertory"); utils::error::raise_error(function_name, "failed to initialize repertory");
event_system::instance().raise<unmount_requested>(); event_system::instance().raise<unmount_requested>(function_name);
} }
return this; return this;

View File

@ -259,7 +259,7 @@ auto remote_fuse_drive::init_impl(struct fuse_conn_info *conn) -> void * {
if (remote_instance_->fuse_init() != 0) { if (remote_instance_->fuse_init() != 0) {
utils::error::raise_error(function_name, utils::error::raise_error(function_name,
"failed to connect to remote server"); "failed to connect to remote server");
event_system::instance().raise<unmount_requested>(); event_system::instance().raise<unmount_requested>(function_name);
} else { } else {
server_ = std::make_shared<server>(config_); server_ = std::make_shared<server>(config_);
server_->start(); server_->start();

View File

@ -68,7 +68,9 @@ void server::handle_set_config_value_by_name(const httplib::Request &req,
void server::handle_unmount(const httplib::Request & /*req*/, void server::handle_unmount(const httplib::Request & /*req*/,
httplib::Response &res) { httplib::Response &res) {
event_system::instance().raise<unmount_requested>(); REPERTORY_USES_FUNCTION_NAME();
event_system::instance().raise<unmount_requested>(function_name);
res.status = http_error_codes::ok; res.status = http_error_codes::ok;
} }