mirror of
https://github.com/ceph/ceph
synced 2025-01-11 13:41:02 +00:00
msgr: protect set_myaddr()
This is used by Messenger implementation (and their constituent components). Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
parent
c84b7289c1
commit
a0017fcc25
@ -158,17 +158,20 @@ public:
|
||||
* currently believes to be its own.
|
||||
*/
|
||||
const entity_addr_t& get_myaddr() { return my_inst.addr; }
|
||||
protected:
|
||||
/**
|
||||
* set messenger's address
|
||||
*/
|
||||
void set_myaddr(entity_addr_t a) { my_inst.addr = a; }
|
||||
public:
|
||||
/**
|
||||
* Retrieve the Messenger's name.
|
||||
*
|
||||
* @return A const reference to the name this Messenger
|
||||
* currently believes to be its own.
|
||||
*/
|
||||
const entity_name_t& get_myname() { return my_inst.name; } /**
|
||||
const entity_name_t& get_myname() { return my_inst.name; }
|
||||
/**
|
||||
* Set the name of the local entity. The name is reported to others and
|
||||
* can be changed while the system is running, but doing so at incorrect
|
||||
* times may have bad results.
|
||||
|
@ -387,6 +387,7 @@ public:
|
||||
Accepter accepter;
|
||||
DispatchQueue dispatch_queue;
|
||||
|
||||
friend class Accepter;
|
||||
|
||||
/**
|
||||
* Register a new pipe for accept
|
||||
|
Loading…
Reference in New Issue
Block a user