MCPcopy Create free account
hub / github.com/ElementsProject/elements / Append

Method Append

src/leveldb/db/db_test.cc:171–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169 ManifestFile(SpecialEnv* env, WritableFile* b) : env_(env), base_(b) {}
170 ~ManifestFile() { delete base_; }
171 Status Append(const Slice& data) {
172 if (env_->manifest_write_error_.load(std::memory_order_acquire)) {
173 return Status::IOError("simulated writer error");
174 } else {
175 return base_->Append(data);
176 }
177 }
178 Status Close() { return base_->Close(); }
179 Status Flush() { return base_->Flush(); }
180 Status Sync() {

Callers

nothing calls this directly

Calls 3

IOErrorFunction · 0.85
loadMethod · 0.45
AppendMethod · 0.45

Tested by

no test coverage detected