diff options
| author | Andrew Stitcher <astitcher@apache.org> | 2010-09-08 16:48:36 +0000 |
|---|---|---|
| committer | Andrew Stitcher <astitcher@apache.org> | 2010-09-08 16:48:36 +0000 |
| commit | f1ca344c8126bd3bd079897a4e4c3f23affa5203 (patch) | |
| tree | f0abeebba2f0c97753ecf47a1a5e8d21c8dcc466 /cpp/src/qpid/sys/rdma/RdmaIO.cpp | |
| parent | 18dc691d6bb3cdcc359f70cff064f51eeae51c4d (diff) | |
| download | qpid-python-f1ca344c8126bd3bd079897a4e4c3f23affa5203.tar.gz | |
Move the RDMA buffer tracking/destruction into the QueuePair class from
the RdmaIO class.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@995126 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/sys/rdma/RdmaIO.cpp')
| -rw-r--r-- | cpp/src/qpid/sys/rdma/RdmaIO.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/cpp/src/qpid/sys/rdma/RdmaIO.cpp b/cpp/src/qpid/sys/rdma/RdmaIO.cpp index 845e84eec3..aa0dfbd5a4 100644 --- a/cpp/src/qpid/sys/rdma/RdmaIO.cpp +++ b/cpp/src/qpid/sys/rdma/RdmaIO.cpp @@ -64,14 +64,12 @@ namespace Rdma { for (int i = 0; i<recvBufferCount; ++i) { // Allocate recv buffer Buffer* b = qp->createBuffer(bufferSize); - buffers.push_front(b); qp->postRecv(b); } for (int i = 0; i<xmitBufferCount; ++i) { // Allocate xmit buffer Buffer* b = qp->createBuffer(bufferSize); - buffers.push_front(b); bufferQueue.push_front(b); } } @@ -86,8 +84,6 @@ namespace Rdma { QPID_LOG(error, "RDMA: qp=" << qp << ": Deleting queue whilst not shutdown"); dataHandle.stopWatch(); } - - // The buffers ptr_deque automatically deletes all the buffers we've allocated // TODO: It might turn out to be more efficient in high connection loads to reuse the // buffers rather than having to reregister them all the time (this would be straightforward if all // connections haver the same buffer size and harder otherwise) |
