diff --git a/src/enclave/workload/Workload.cpp b/src/enclave/workload/Workload.cpp index 68677312..046c51dd 100644 --- a/src/enclave/workload/Workload.cpp +++ b/src/enclave/workload/Workload.cpp @@ -983,7 +983,7 @@ void Workload::deal_deleted_file() { std::string status = this->sealed_files[pos][FILE_STATUS].ToString(); if ((status[CURRENT_STATUS] == FILE_STATUS_DELETED && status[ORIGIN_STATUS] == FILE_STATUS_DELETED) - || (status[CURRENT_STATUS] == FILE_STATUS_DELETED && status[ORIGIN_STATUS] == FILE_STATUS_UNVERIFIED) + || (status[CURRENT_STATUS] == FILE_STATUS_DELETED && status[ORIGIN_STATUS] == FILE_STATUS_UNVERIFIED && status[WAITING_STATUS] == FILE_STATUS_UNVERIFIED) || (status[CURRENT_STATUS] == FILE_STATUS_DELETED && status[ORIGIN_STATUS] == FILE_STATUS_LOST)) { this->sealed_files.erase(this->sealed_files.begin() + pos);