leveldb
leveldb copied to clipboard
LevelDB is a fast key-value storage library written at Google that provides an ordered mapping from string keys to string values.
1. Removed dependency on `std::aligned_storage` (which will be deprecated in C++23; see also https://github.com/cplusplus/papers/issues/197). 2. Removed redundant `static_assert`s. 3. Guaranteed the placement new-expression calls global `operator new`.
In the function Status VersionSet::Recover(bool* save_manifest), the statement manifest_file_number_ = next_file; could potentially lead to a scenario where the identifier of the manifest file matches that of the log file...
 这里没有释放signal,会导致 write 持续处于 Wait 状态 @ghemawat https://github.com/google/leveldb/commit/d79762e27369365a7ffe1f2e3a5c64b0632079e1#diff-6fdb755f590d9b01ecb89bd8ceb28577e85536d4472f8e4fc3addeb9a65f3645R1115-R1135
# Description There appears to be a potential memory leak issue within the Status class of the leveldb project. This issue was discovered during fuzz testing and further analysis of...
### Description The `leveldb_open` function in LevelDB is vulnerable to a null pointer dereference issue, where it directly converts a `const char* name` to a `std::string` without null checks. This...
https://github.com/google/leveldb/blob/068d5ee1a3ac40dabd00d211d5013af44be55bea/util/env.cc#L25 https://github.com/google/leveldb/blob/068d5ee1a3ac40dabd00d211d5013af44be55bea/util/env.cc#L26 https://github.com/google/leveldb/blob/068d5ee1a3ac40dabd00d211d5013af44be55bea/util/env.cc#L28 https://github.com/google/leveldb/blob/068d5ee1a3ac40dabd00d211d5013af44be55bea/util/env.cc#L29 `Status Env::RemoveDir(const std::string& dirname) { return DeleteDir(dirname); } Status Env::DeleteDir(const std::string& dirname) { return RemoveDir(dirname); } Status Env::RemoveFile(const std::string& fname) { return DeleteFile(fname); } Status Env::DeleteFile(const...
SPM can't differ if .h is C or C++ header
Why do we need the class MemTableBackwardIterator? Do we need to delete it?
Aarif
i added my name
I am using LevelDB version SHARED_VERSION_MAJOR = 1 SHARED_VERSION_MINOR = 20 OS  Database ~ 20 000 000 Pair  Memory consumption before reading...