int peer_type;
entity_addr_t peer_addr;
unsigned features;
+ void *pipe;
public:
- Connection() : nref(1), lock("Connection::lock"), priv(NULL), peer_type(-1), features(0) {}
+ Connection() : nref(1), lock("Connection::lock"), priv(NULL), peer_type(-1), features(0), pipe(NULL) {}
~Connection() {
//generic_dout(0) << "~Connection " << this << dendl;
if (priv) {
in_qlen(0), keepalive(false),
connect_seq(0), peer_global_seq(0),
out_seq(0), in_seq(0), in_seq_acked(0),
- reader_thread(this), writer_thread(this) { }
+ reader_thread(this), writer_thread(this) {
+ connection_state->pipe = this;
+ }
~Pipe() {
for (map<int, xlist<Pipe *>::item* >::iterator i = queue_items.begin();
i != queue_items.end();
}
assert(out_q.empty());
assert(sent.empty());
+ connection_state->pipe = NULL;
connection_state->put();
}