Changed build type
Some checks failed
/ Build the server (push) Failing after 6m17s

This commit is contained in:
Mutzi 2024-05-21 15:37:26 +02:00
parent 7177146a56
commit 868497293c
Signed by: root
GPG Key ID: 2437494E09F13876
3 changed files with 5 additions and 2 deletions

View File

@ -15,7 +15,7 @@ jobs:
- run: npm run build
working-directory: frontend
- run: mkdir build
- run: cmake -DCMAKE_BUILD_TYPE=Release ..
- run: cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
working-directory: build
- run: cmake --build . -j
working-directory: build

View File

@ -18,6 +18,10 @@ void validate_node(const std::string &username, const std::filesystem::path &use
if (node->file) {
auto file = user_dir / std::to_string(node->id);
if (!std::filesystem::exists(file) && node->size == 0) {
data_logger->warn("Created empty file for {}", name);
std::ofstream f{file};
}
ok(std::filesystem::exists(file), "{} is missing file on disk", name);
auto size = std::filesystem::file_size(file);
ok(node->size == size, "{} size does not match (Node,Disk): {} != {}", name, node->size, size);

View File

@ -236,7 +236,6 @@ void Server::FS_delete_nodes(std::string &&token, std::vector<std::uint64_t> &&n
stream.send(" Done\n");
todo.pop();
std::this_thread::sleep_for(std::chrono::seconds{1});
}
stream.close();