This commit is contained in:
parent
7177146a56
commit
868497293c
@ -15,7 +15,7 @@ jobs:
|
|||||||
- run: npm run build
|
- run: npm run build
|
||||||
working-directory: frontend
|
working-directory: frontend
|
||||||
- run: mkdir build
|
- run: mkdir build
|
||||||
- run: cmake -DCMAKE_BUILD_TYPE=Release ..
|
- run: cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
|
||||||
working-directory: build
|
working-directory: build
|
||||||
- run: cmake --build . -j
|
- run: cmake --build . -j
|
||||||
working-directory: build
|
working-directory: build
|
||||||
|
@ -18,6 +18,10 @@ void validate_node(const std::string &username, const std::filesystem::path &use
|
|||||||
|
|
||||||
if (node->file) {
|
if (node->file) {
|
||||||
auto file = user_dir / std::to_string(node->id);
|
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);
|
ok(std::filesystem::exists(file), "{} is missing file on disk", name);
|
||||||
auto size = std::filesystem::file_size(file);
|
auto size = std::filesystem::file_size(file);
|
||||||
ok(node->size == size, "{} size does not match (Node,Disk): {} != {}", name, node->size, size);
|
ok(node->size == size, "{} size does not match (Node,Disk): {} != {}", name, node->size, size);
|
||||||
|
@ -236,7 +236,6 @@ void Server::FS_delete_nodes(std::string &&token, std::vector<std::uint64_t> &&n
|
|||||||
stream.send(" Done\n");
|
stream.send(" Done\n");
|
||||||
|
|
||||||
todo.pop();
|
todo.pop();
|
||||||
std::this_thread::sleep_for(std::chrono::seconds{1});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
stream.close();
|
stream.close();
|
||||||
|
Loading…
Reference in New Issue
Block a user