void AdminSocket::do_tell_queue()
{
ldout(m_cct,10) << __func__ << dendl;
- std::list<ref_t<MCommand>> q;
- std::list<ref_t<MMonCommand>> lq;
+ std::list<cref_t<MCommand>> q;
+ std::list<cref_t<MMonCommand>> lq;
{
std::lock_guard l(tell_lock);
q.swap(tell_queue);
in_hook_cond.notify_all();
}
-void AdminSocket::queue_tell_command(ref_t<MCommand> m)
+void AdminSocket::queue_tell_command(cref_t<MCommand> m)
{
ldout(m_cct,10) << __func__ << " " << *m << dendl;
std::lock_guard l(tell_lock);
tell_queue.push_back(std::move(m));
wakeup();
}
-void AdminSocket::queue_tell_command(ref_t<MMonCommand> m)
+void AdminSocket::queue_tell_command(cref_t<MMonCommand> m)
{
ldout(m_cct,10) << __func__ << " " << *m << dendl;
std::lock_guard l(tell_lock);
std::ostream& errss,
bufferlist *outbl);
- void queue_tell_command(ref_t<MCommand> m);
- void queue_tell_command(ref_t<MMonCommand> m); // for compat
+ void queue_tell_command(cref_t<MCommand> m);
+ void queue_tell_command(cref_t<MMonCommand> m); // for compat
private:
std::unique_ptr<AdminSocketHook> getdescs_hook;
std::mutex tell_lock;
- std::list<ref_t<MCommand>> tell_queue;
- std::list<ref_t<MMonCommand>> tell_legacy_queue;
+ std::list<cref_t<MCommand>> tell_queue;
+ std::list<cref_t<MMonCommand>> tell_legacy_queue;
struct hook_info {
AdminSocketHook* hook;
std::string rs;
MMonCommandAck() : PaxosServiceMessage{MSG_MON_COMMAND_ACK, 0} {}
- MMonCommandAck(std::vector<std::string>& c, int _r, std::string s, version_t v) :
+ MMonCommandAck(const std::vector<std::string>& c, int _r, std::string s, version_t v) :
PaxosServiceMessage{MSG_MON_COMMAND_ACK, v},
cmd(c), r(_r), rs(s) { }
private: