Skip to content

Commit 14fc61b

Browse files
committed
os/bluestore: Adapt to new DENC_START_UNCHECKED
blustore_onode_t encoding version is directly controlled by options. We cannot use static checker. Signed-off-by: Adam Kupczyk <[email protected]>
1 parent a30e08f commit 14fc61b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/os/bluestore/bluestore_types.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1262,7 +1262,7 @@ struct bluestore_onode_t {
12621262
if ((features & FLAG_DEBUG_FORCE_V2) != 0) {
12631263
struct_v_to_use = 2;
12641264
}
1265-
DENC_START(struct_v_to_use, 1, p);
1265+
DENC_START_UNCHECKED(struct_v_to_use, 1, p);
12661266
_denc_friend(*this, p, struct_v_to_use);
12671267
DENC_FINISH(p);
12681268
}
@@ -1271,13 +1271,13 @@ struct bluestore_onode_t {
12711271
if ((features & FLAG_DEBUG_FORCE_V2) != 0) {
12721272
struct_v_to_use = 2;
12731273
}
1274-
DENC_START(struct_v_to_use, 1, p);
1274+
DENC_START_UNCHECKED(struct_v_to_use, 1, p);
12751275
DENC_DUMP_PRE(Type);
12761276
_denc_friend(*this, p, struct_v_to_use);
12771277
DENC_FINISH(p);
12781278
}
12791279
void decode(::ceph::buffer::ptr::const_iterator& p, uint64_t features = 0) {
1280-
DENC_START(3, 1, p);
1280+
DENC_START_UNCHECKED(3, 1, p);
12811281
_denc_friend(*this, p, struct_v); //decode what is
12821282
if ((features & FLAG_DEBUG_FORCE_V2) != 0) {
12831283
this->segment_size = 0;

0 commit comments

Comments
 (0)