disable space optimization for now for less traffic
This commit is contained in:
parent
3d704c7e73
commit
fe9eaeb8f6
1 changed files with 12 additions and 12 deletions
|
|
@ -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
|
||||
// of available designs
|
||||
if (design_entry.first == 0) {
|
||||
DEBUG_PRINT("Reference counter has hit 0. Deleting temp file from disk...");
|
||||
// if (design_entry.first == 0) {
|
||||
// DEBUG_PRINT("Reference counter has hit 0. Deleting temp file from disk...");
|
||||
|
||||
// delete the temporary file from disk
|
||||
DEBUG_PRINT("Deleting design file from disk.");
|
||||
std::remove(design_entry.second.c_str());
|
||||
// // delete the temporary file from disk
|
||||
// DEBUG_PRINT("Deleting design file from disk.");
|
||||
// std::remove(design_entry.second.c_str());
|
||||
|
||||
DEBUG_PRINT("Erasing design from store.");
|
||||
this->designs.erase(id);
|
||||
}
|
||||
// DEBUG_PRINT("Erasing design from store.");
|
||||
// this->designs.erase(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
|
||||
// of available reference runs
|
||||
if (reference_run.first == 0) {
|
||||
DEBUG_PRINT("Reference counter has hit 0. Erasing reference run from map...");
|
||||
this->references.erase(id);
|
||||
}
|
||||
// if (reference_run.first == 0) {
|
||||
// DEBUG_PRINT("Reference counter has hit 0. Erasing reference run from map...");
|
||||
// this->references.erase(id);
|
||||
// }
|
||||
}
|
||||
|
||||
std::shared_ptr<pl::SimOutputArtifact> TaskInterface::get_reference(const db::uuid_t& id) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue