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:
Sage Weil 2012-08-11 07:31:35 -07:00
parent c84b7289c1
commit a0017fcc25
2 changed files with 5 additions and 1 deletions

View File

@ -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.

View File

@ -387,6 +387,7 @@ public:
Accepter accepter;
DispatchQueue dispatch_queue;
friend class Accepter;
/**
* Register a new pipe for accept