mirror of
https://github.com/ceph/ceph
synced 2025-01-20 10:01:45 +00:00
ReplicatedBackend.cc: init 'Message *commit' to NULL
Init variable with NULL to make sure it crashes in error case (would be a bug) if NDEBUG disable the assert() call. Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
This commit is contained in:
parent
d36f665aa6
commit
dc50f43572
@ -1267,7 +1267,7 @@ void ReplicatedBackend::sub_op_modify_commit(RepModifyRef rm)
|
||||
get_parent()->update_last_complete_ondisk(rm->last_complete);
|
||||
|
||||
Message *m = rm->op->get_req();
|
||||
Message *commit;
|
||||
Message *commit = NULL;
|
||||
if (m->get_type() == MSG_OSD_SUBOP) {
|
||||
// doesn't have CLIENT SUBOP feature ,use Subop
|
||||
MOSDSubOpReply *reply = new MOSDSubOpReply(
|
||||
|
Loading…
Reference in New Issue
Block a user