Skip to content

Commit eaed7c0

Browse files
committed
os/bluestore/bluefs: Removed unused field from bluefs_super_t
New WAL handling mode added field `wal_version` to bluefs_super_t. At some point of refactor become unused. Removing it while we still can. Signed-off-by: Adam Kupczyk <[email protected]>
1 parent 41c7e05 commit eaed7c0

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

src/os/bluestore/bluefs_types.cc

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,6 @@ void bluefs_super_t::encode(bufferlist& bl) const
190190
encode(block_size, bl);
191191
encode(log_fnode, bl);
192192
encode(memorized_layout, bl);
193-
if (_version >= 3) {
194-
encode(wal_version, bl);
195-
}
196193
ENCODE_FINISH(bl);
197194
}
198195

@@ -208,9 +205,6 @@ void bluefs_super_t::decode(bufferlist::const_iterator& p)
208205
if (struct_v >= 2) {
209206
decode(memorized_layout, p);
210207
}
211-
if (struct_v >= 3) {
212-
decode(wal_version, p);
213-
}
214208
DECODE_FINISH(p);
215209
}
216210

src/os/bluestore/bluefs_types.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,8 +328,6 @@ struct bluefs_super_t {
328328

329329
std::optional<bluefs_layout_t> memorized_layout;
330330

331-
uint8_t wal_version;
332-
333331
bluefs_super_t();
334332

335333
uint64_t block_mask() const {

0 commit comments

Comments
 (0)