mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-02 01:04:43 +02:00
Merge bitcoin/bitcoin#32534: Update leveldb subtree to latest upstream
7015052ebabuild: remove Wsuggest-override suppression from leveldb build (fanquake)e2c84b896fSquashed 'src/leveldb/' changes from 4188247086..113db4962b (fanquake) Pull request description: Pulls in * https://github.com/bitcoin-core/leveldb-subtree/pull/51 Remove the related warning suppression. ACKs for top commit: l0rinc: utACK7015052ebahebasto: ACK7015052eba, I've updated the `leveldb` subtree locally and got zero diff with this branch. Tree-SHA512: 1ac7c8ecc9025086b429e12c22fc25f654eaf68fc9500b95341fb635cea12e7f80d69298cff120e8557a4f2f5809956a3b158cdb4db745cfa605c0df6f346423
This commit is contained in:
@@ -90,9 +90,6 @@ else()
|
||||
try_append_cxx_flags("-Wconditional-uninitialized" TARGET nowarn_leveldb_interface SKIP_LINK
|
||||
IF_CHECK_PASSED "-Wno-conditional-uninitialized"
|
||||
)
|
||||
try_append_cxx_flags("-Wsuggest-override" TARGET nowarn_leveldb_interface SKIP_LINK
|
||||
IF_CHECK_PASSED "-Wno-suggest-override"
|
||||
)
|
||||
endif()
|
||||
|
||||
target_link_libraries(leveldb PRIVATE
|
||||
|
||||
@@ -471,11 +471,11 @@ leveldb_filterpolicy_t* leveldb_filterpolicy_create_bloom(int bits_per_key) {
|
||||
static void DoNothing(void*) {}
|
||||
|
||||
~Wrapper() { delete rep_; }
|
||||
const char* Name() const { return rep_->Name(); }
|
||||
void CreateFilter(const Slice* keys, int n, std::string* dst) const {
|
||||
const char* Name() const override { return rep_->Name(); }
|
||||
void CreateFilter(const Slice* keys, int n, std::string* dst) const override {
|
||||
return rep_->CreateFilter(keys, n, dst);
|
||||
}
|
||||
bool KeyMayMatch(const Slice& key, const Slice& filter) const {
|
||||
bool KeyMayMatch(const Slice& key, const Slice& filter) const override {
|
||||
return rep_->KeyMayMatch(key, filter);
|
||||
}
|
||||
|
||||
|
||||
@@ -139,7 +139,7 @@ class SpecialEnv : public EnvWrapper {
|
||||
public:
|
||||
DataFile(SpecialEnv* env, WritableFile* base) : env_(env), base_(base) {}
|
||||
~DataFile() { delete base_; }
|
||||
Status Append(const Slice& data) {
|
||||
Status Append(const Slice& data) override {
|
||||
if (env_->no_space_.load(std::memory_order_acquire)) {
|
||||
// Drop writes on the floor
|
||||
return Status::OK();
|
||||
@@ -147,9 +147,9 @@ class SpecialEnv : public EnvWrapper {
|
||||
return base_->Append(data);
|
||||
}
|
||||
}
|
||||
Status Close() { return base_->Close(); }
|
||||
Status Flush() { return base_->Flush(); }
|
||||
Status Sync() {
|
||||
Status Close() override { return base_->Close(); }
|
||||
Status Flush() override { return base_->Flush(); }
|
||||
Status Sync() override {
|
||||
if (env_->data_sync_error_.load(std::memory_order_acquire)) {
|
||||
return Status::IOError("simulated data sync error");
|
||||
}
|
||||
@@ -168,16 +168,16 @@ class SpecialEnv : public EnvWrapper {
|
||||
public:
|
||||
ManifestFile(SpecialEnv* env, WritableFile* b) : env_(env), base_(b) {}
|
||||
~ManifestFile() { delete base_; }
|
||||
Status Append(const Slice& data) {
|
||||
Status Append(const Slice& data) override {
|
||||
if (env_->manifest_write_error_.load(std::memory_order_acquire)) {
|
||||
return Status::IOError("simulated writer error");
|
||||
} else {
|
||||
return base_->Append(data);
|
||||
}
|
||||
}
|
||||
Status Close() { return base_->Close(); }
|
||||
Status Flush() { return base_->Flush(); }
|
||||
Status Sync() {
|
||||
Status Close() override { return base_->Close(); }
|
||||
Status Flush() override { return base_->Flush(); }
|
||||
Status Sync() override {
|
||||
if (env_->manifest_sync_error_.load(std::memory_order_acquire)) {
|
||||
return Status::IOError("simulated sync error");
|
||||
} else {
|
||||
|
||||
@@ -205,7 +205,7 @@ class LogTest {
|
||||
|
||||
return Status::OK();
|
||||
}
|
||||
std::string GetName() const { return ""; }
|
||||
std::string GetName() const override { return ""; }
|
||||
|
||||
Slice contents_;
|
||||
bool force_error_;
|
||||
|
||||
@@ -129,7 +129,7 @@ class StringSource : public RandomAccessFile {
|
||||
return Status::OK();
|
||||
}
|
||||
|
||||
std::string GetName() const { return ""; }
|
||||
std::string GetName() const override { return ""; }
|
||||
private:
|
||||
std::string contents_;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user