commit | 859eb7994876f26fd9f52d9589fbcab8e2fe8069 | [log] [tgz] |
---|---|---|
author | Alex Elder <elder@dreamhost.com> | Tue Feb 14 14:05:33 2012 -0600 |
committer | Alex Elder <elder@dreamhost.com> | Thu Mar 22 10:47:50 2012 -0500 |
tree | 128067d342a4937228ac5c307c153b9b95ec254e | |
parent | 963be4d7709f84d865f76d12d5b0ec7edad1c498 [diff] |
libceph: encapsulate connection kvec operations Encapsulate the operation of adding a new chunk of data to the next open slot in a ceph_connection's out_kvec array. Also add a "reset" operation to make subsequent add operations start at the beginning of the array again. Use these routines throughout, avoiding duplicate code and ensuring all calls are handled consistently. Signed-off-by: Alex Elder <elder@dreamhost.com> Signed-off-by: Sage Weil <sage@newdream.net>