If return True, the file is persisted. The caller should hold the status lock.
| 249 | /// If return True, the file is persisted. |
| 250 | /// The caller should hold the status lock. |
| 251 | bool is_persisted(const std::unique_lock<SpinLock>& l) { |
| 252 | return GetFileStatusLocked(l) == DiskFileStatus::PERSISTED; |
| 253 | } |
| 254 | |
| 255 | /// If return True, the file is in writing. |
| 256 | /// The caller should hold the status lock. |