Skip to content

Commit 2450db6

Browse files
committed
osd/ReplicatedPG.h: init flushed_version in FlushOp ctor
Fix for: CID 1160851 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR) uninit_member: Non-static class member flushed_version is not initialized in this constructor nor in any functions that it calls. Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
1 parent bda4cd2 commit 2450db6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/osd/ReplicatedPG.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ class ReplicatedPG : public PG, public PGBackend::Listener {
254254
Context *on_flush; ///< callback, may be null
255255

256256
FlushOp()
257-
: objecter_tid(0), rval(0),
257+
: flushed_version(0), objecter_tid(0), rval(0),
258258
blocking(false), removal(false),
259259
on_flush(NULL) {}
260260
~FlushOp() { assert(!on_flush); }

0 commit comments

Comments
 (0)