v2.0.4-rc (#37)
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				BlockStorage/repertory/pipeline/head This commit looks good
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	BlockStorage/repertory/pipeline/head This commit looks good
				
			# Changelog ## v2.0.4-rc ### BREAKING CHANGES * `renterd` v2.0.0+ is now required. Prior versions will fail to mount. ### Issues * \#35 [bug] Low frequency check is set to '0' instead of 1 hour by default * \#36 [bug] Max cache size bytes is set to '0' by default ### Changes from v2.0.3-rc * Added Sia API version check prior to mounting * Added back `-cv` (check version) CLI option * Continue documentation updates * Fixed setting `ApiAuth` via `set_value_by_name` * Fixed setting `HostConfig.ApiUser` via `set_value_by_name` * Fixed setting `HostConfig.Path` via `set_value_by_name` * Fixed setting `HostConfig.Protocol` via `set_value_by_name` * Improved ring buffer read-ahead * Integrated `renterd` version 2.0.0 * Prefer using local cache file when opening files * Refactored `app_config` unit tests * Refactored polling to be more accurate on scheduling tasks Reviewed-on: #37
This commit is contained in:
		| @@ -41,8 +41,16 @@ auto change_to_process_directory() -> bool { | ||||
|  | ||||
|     ::GetModuleFileNameA(nullptr, file_name.data(), | ||||
|                          static_cast<DWORD>(file_name.size() - 1U)); | ||||
|     auto path = utils::path::strip_to_file_name(file_name.c_str()); | ||||
|     ::SetCurrentDirectoryA(path.c_str()); | ||||
|     auto path = utils::path::get_parent_path(file_name.c_str()); | ||||
|     auto res = ::SetCurrentDirectoryA(path.c_str()) != 0; | ||||
|     if (not res) { | ||||
|       throw utils::error::create_exception( | ||||
|           function_name, { | ||||
|                              "failed to set current directory", | ||||
|                              std::to_string(utils::get_last_error_code()), | ||||
|                              path, | ||||
|                          }); | ||||
|     } | ||||
| #else // !defined(_WIN32) | ||||
|     std::string path; | ||||
|     path.resize(PATH_MAX + 1); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user