client track opByIOID per channel

needed to handle CMD_DESTROY_CHANNEL
This commit is contained in:
Michael Davidsaver
2020-03-01 19:57:13 -08:00
parent 1f91eb9e5d
commit e668038250
5 changed files with 21 additions and 6 deletions
+4
View File
@@ -59,6 +59,7 @@ struct Connection : public ConnBase, public std::enable_shared_from_this<Connect
std::map<uint32_t, std::weak_ptr<Channel>> creatingByCID,
chanBySID;
// entries always have matching entry in a Channel::opByIOID
std::map<uint32_t, RequestInfo> opByIOID;
uint32_t nextIOID = 0u;
@@ -122,6 +123,9 @@ struct Channel {
std::list<std::weak_ptr<OperationBase>> pending;
// points to storage of Connection::opByIOID
std::map<uint32_t, RequestInfo*> opByIOID;
Channel(const std::shared_ptr<Context::Pvt>& context, const std::string& name, uint32_t cid);
~Channel();