@@ -139,17 +139,17 @@ class SpecialEnv : public EnvWrapper {
139139 public:
140140 DataFile (SpecialEnv* env, WritableFile* base) : env_(env), base_(base) {}
141141 ~DataFile () { delete base_; }
142- Status Append (const Slice& data) {
142+ Status Append (const Slice& data) override {
143143 if (env_->no_space_ .load (std::memory_order_acquire)) {
144144 // Drop writes on the floor
145145 return Status::OK ();
146146 } else {
147147 return base_->Append (data);
148148 }
149149 }
150- Status Close () { return base_->Close (); }
151- Status Flush () { return base_->Flush (); }
152- Status Sync () {
150+ Status Close () override { return base_->Close (); }
151+ Status Flush () override { return base_->Flush (); }
152+ Status Sync () override {
153153 if (env_->data_sync_error_ .load (std::memory_order_acquire)) {
154154 return Status::IOError (" simulated data sync error" );
155155 }
@@ -168,16 +168,16 @@ class SpecialEnv : public EnvWrapper {
168168 public:
169169 ManifestFile (SpecialEnv* env, WritableFile* b) : env_(env), base_(b) {}
170170 ~ManifestFile () { delete base_; }
171- Status Append (const Slice& data) {
171+ Status Append (const Slice& data) override {
172172 if (env_->manifest_write_error_ .load (std::memory_order_acquire)) {
173173 return Status::IOError (" simulated writer error" );
174174 } else {
175175 return base_->Append (data);
176176 }
177177 }
178- Status Close () { return base_->Close (); }
179- Status Flush () { return base_->Flush (); }
180- Status Sync () {
178+ Status Close () override { return base_->Close (); }
179+ Status Flush () override { return base_->Flush (); }
180+ Status Sync () override {
181181 if (env_->manifest_sync_error_ .load (std::memory_order_acquire)) {
182182 return Status::IOError (" simulated sync error" );
183183 } else {
0 commit comments