mirror of
https://github.com/ceph/ceph
synced 2025-01-01 16:42:29 +00:00
Merge pull request #13662 from majianpeng/aio-memset
os/aio: remove the redundant memset(struct iocb) Reviewed-by: Sage Weil <sage@redhat.com>
This commit is contained in:
commit
86f2d14c96
@ -257,7 +257,6 @@ private:
|
||||
aio_info(bufferlist& b, uint64_t o, uint64_t s)
|
||||
: iov(NULL), done(false), off(o), len(b.length()), seq(s) {
|
||||
bl.claim(b);
|
||||
memset((void*)&iocb, 0, sizeof(iocb));
|
||||
}
|
||||
~aio_info() {
|
||||
delete[] iov;
|
||||
|
@ -65,7 +65,6 @@ public:
|
||||
boost::intrusive::list_member_hook<> queue_item;
|
||||
|
||||
aio_t(void *p, int f) : priv(p), fd(f), offset(0), length(0), rval(-1000) {
|
||||
memset(&iocb, 0, sizeof(iocb));
|
||||
}
|
||||
|
||||
void pwritev(uint64_t _offset, uint64_t len) {
|
||||
|
Loading…
Reference in New Issue
Block a user