]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: MonOpRequest: allow setting the op type
authorJoao Eduardo Luis <joao@suse.de>
Fri, 26 Jun 2015 09:21:49 +0000 (10:21 +0100)
committerJoao Eduardo Luis <joao@suse.de>
Thu, 16 Jul 2015 17:31:23 +0000 (18:31 +0100)
commitb5701553fcc13f30ebf35a6ee8402cfd43f24e18
treeb6b2441afe05ee65b23c69c550540ea6bd780a3a
parent1b39f7d263cd20464bc68c970332baf095f20bc2
mon: MonOpRequest: allow setting the op type

When we introduced the MonOpRequest in the monitor and moved pretty much
every single function receiving messages in their arguments to take op
requests, we basically lost the type safety that was guaranteed from
Monitor::dispatch().

This patch adds an op_type field to the op request, as an easy fix for
this now lacking safety.

Signed-off-by: Joao Eduardo Luis <joao@suse.de>
src/mon/MonOpRequest.h