Adar Dembo has submitted this change and it was merged. Change subject: env: add WriteV() API ......................................................................
env: add WriteV() API Adds WriteV() methods to RWFile and WritableFile that allows writing multiple data Slices in one call. The implementation leverages the pwritev system call when possible and simulates it with pwrite calls when unavailable. Additionally adds WriteV()/AppendV() methods to the block manager abstraction. These methods will be used in KUDU-463 to support writing checksums and block data in a single call. Change-Id: I30acfa2e4918ef945c55646647913b36a07daaa4 Reviewed-on: http://gerrit.cloudera.org:8080/6800 Reviewed-by: Adar Dembo <[email protected]> Tested-by: Adar Dembo <[email protected]> --- M src/kudu/cfile/cfile_writer.cc M src/kudu/cfile/cfile_writer.h M src/kudu/consensus/log_util.cc M src/kudu/fs/block_manager.h M src/kudu/fs/file_block_manager.cc M src/kudu/fs/log_block_manager.cc M src/kudu/util/env-test.cc M src/kudu/util/env.h M src/kudu/util/env_posix.cc M src/kudu/util/file_cache.cc 10 files changed, 200 insertions(+), 133 deletions(-) Approvals: Adar Dembo: Looks good to me, approved; Verified -- To view, visit http://gerrit.cloudera.org:8080/6800 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: merged Gerrit-Change-Id: I30acfa2e4918ef945c55646647913b36a07daaa4 Gerrit-PatchSet: 5 Gerrit-Project: kudu Gerrit-Branch: master Gerrit-Owner: Grant Henke <[email protected]> Gerrit-Reviewer: Adar Dembo <[email protected]> Gerrit-Reviewer: Grant Henke <[email protected]> Gerrit-Reviewer: Tidy Bot
