If return True, the file is deleted. The caller should hold the status lock.
| 261 | /// If return True, the file is deleted. |
| 262 | /// The caller should hold the status lock. |
| 263 | bool is_deleted(const std::unique_lock<SpinLock>& l) { |
| 264 | return GetFileStatusLocked(l) == DiskFileStatus::DELETED; |
| 265 | } |
| 266 | |
| 267 | /// If True, the file is to be deleted. |
| 268 | bool is_to_delete() { return to_delete_.Load(); } |