Skip to content

Commit 088180d

Browse files
authored
Merge pull request ceph#65075 from tchaikov/wip-transaction-set-unused
os/Transaction: initialize unused fields in TransactionData Reviewed-by: Radoslaw Zarzynski <[email protected]> Reviewed-by: Bill Scales <[email protected]>
2 parents d874d99 + b06a68b commit 088180d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/os/Transaction.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ class Transaction {
195195
TransactionData(TransactionData&& other) noexcept :
196196
ops(other.ops),
197197
fadvise_flags(other.fadvise_flags) {
198+
unused1 = unused2 = unused3 = 0;
198199
other.ops = 0;
199200
other.fadvise_flags = 0;
200201
}

0 commit comments

Comments
 (0)