Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

os/aio: remove the redundant memset(struct iocb) #13662

Merged
merged 1 commit into from Mar 1, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion src/os/filestore/FileJournal.h
Expand Up @@ -257,7 +257,6 @@ class FileJournal :
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;
Expand Down
1 change: 0 additions & 1 deletion src/os/fs/FS.h
Expand Up @@ -65,7 +65,6 @@ class FS {
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) {
Expand Down