disable space optimization for now for less traffic

This commit is contained in:
Fabian Posch 2025-01-08 16:51:48 +01:00
parent 3d704c7e73
commit fe9eaeb8f6

View file

@ -170,16 +170,16 @@ void TaskInterface::decrement_design(const db::uuid_t& id) {
// if the reference counter hit 0, erase the design entry from the list // if the reference counter hit 0, erase the design entry from the list
// of available designs // of available designs
if (design_entry.first == 0) { // if (design_entry.first == 0) {
DEBUG_PRINT("Reference counter has hit 0. Deleting temp file from disk..."); // DEBUG_PRINT("Reference counter has hit 0. Deleting temp file from disk...");
// delete the temporary file from disk // // delete the temporary file from disk
DEBUG_PRINT("Deleting design file from disk."); // DEBUG_PRINT("Deleting design file from disk.");
std::remove(design_entry.second.c_str()); // std::remove(design_entry.second.c_str());
DEBUG_PRINT("Erasing design from store."); // DEBUG_PRINT("Erasing design from store.");
this->designs.erase(id); // this->designs.erase(id);
} // }
} }
std::string TaskInterface::get_design(const db::uuid_t& id) { std::string TaskInterface::get_design(const db::uuid_t& id) {
@ -249,10 +249,10 @@ void TaskInterface::decrement_reference(const db::uuid_t& id) {
// if the reference counter hit 0, erase the reference run entry from the list // if the reference counter hit 0, erase the reference run entry from the list
// of available reference runs // of available reference runs
if (reference_run.first == 0) { // if (reference_run.first == 0) {
DEBUG_PRINT("Reference counter has hit 0. Erasing reference run from map..."); // DEBUG_PRINT("Reference counter has hit 0. Erasing reference run from map...");
this->references.erase(id); // this->references.erase(id);
} // }
} }
std::shared_ptr<pl::SimOutputArtifact> TaskInterface::get_reference(const db::uuid_t& id) { std::shared_ptr<pl::SimOutputArtifact> TaskInterface::get_reference(const db::uuid_t& id) {