| 178 | } |
| 179 | |
| 180 | Status TestWritableFile::Append(const Slice& data) { |
| 181 | Status s = target_->Append(data); |
| 182 | if (s.ok() && env_->IsFilesystemActive()) { |
| 183 | state_.pos_ += data.size(); |
| 184 | } |
| 185 | return s; |
| 186 | } |
| 187 | |
| 188 | Status TestWritableFile::Close() { |
| 189 | writable_file_opened_ = false; |