File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 4
4
5
5
#include < dbwrapper.h>
6
6
7
- #include < clientversion.h>
8
7
#include < logging.h>
9
8
#include < random.h>
10
9
#include < serialize.h>
@@ -156,9 +155,9 @@ struct CDBBatch::WriteBatchImpl {
156
155
leveldb::WriteBatch batch;
157
156
};
158
157
159
- CDBBatch::CDBBatch (const CDBWrapper& _parent) : parent(_parent),
160
- m_impl_batch{std::make_unique<CDBBatch::WriteBatchImpl>() },
161
- ssValue (SER_DISK, CLIENT_VERSION) {};
158
+ CDBBatch::CDBBatch (const CDBWrapper& _parent)
159
+ : parent{_parent },
160
+ m_impl_batch{std::make_unique<CDBBatch::WriteBatchImpl>()} {};
162
161
163
162
CDBBatch::~CDBBatch () = default ;
164
163
@@ -168,7 +167,7 @@ void CDBBatch::Clear()
168
167
size_estimate = 0 ;
169
168
}
170
169
171
- void CDBBatch::WriteImpl (Span<const std::byte> key, CDataStream & ssValue)
170
+ void CDBBatch::WriteImpl (Span<const std::byte> key, DataStream & ssValue)
172
171
{
173
172
leveldb::Slice slKey (CharCast (key.data ()), key.size ());
174
173
ssValue.Xor (dbwrapper_private::GetObfuscateKey (parent));
Original file line number Diff line number Diff line change @@ -80,11 +80,11 @@ class CDBBatch
80
80
const std::unique_ptr<WriteBatchImpl> m_impl_batch;
81
81
82
82
DataStream ssKey{};
83
- CDataStream ssValue;
83
+ DataStream ssValue{} ;
84
84
85
85
size_t size_estimate{0 };
86
86
87
- void WriteImpl (Span<const std::byte> key, CDataStream & ssValue);
87
+ void WriteImpl (Span<const std::byte> key, DataStream & ssValue);
88
88
void EraseImpl (Span<const std::byte> key);
89
89
90
90
public:
You can’t perform that action at this time.
0 commit comments