Commit 2426c11
committed
os/bluestore: use default value for non-decoded field in test instances
The sbid field added in commit a7f8e23 is set during construction
but not persisted to disk. Including it in dump() output causes
discrepancies between original and re-encoded instances, leading
to test failures in readable.sh and check-generated.sh.
Current tests pass because they reuse the same instance for
re-encoding, preserving non-persisted fields. An upcoming change
will allocate fresh instances for each decode operation, which
will expose this issue and break tests.
Use default value for sbid when generating test instances to ensure
consistency between encoding and decoding operations.
Signed-off-by: Kefu Chai <[email protected]>1 parent a668040 commit 2426c11
1 file changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1361 | 1361 | | |
1362 | 1362 | | |
1363 | 1363 | | |
1364 | | - | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
1365 | 1374 | | |
1366 | 1375 | | |
1367 | 1376 | | |
| |||
0 commit comments