You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by kx...@apache.org on 2023/06/27 16:50:34 UTC
[doris] 02/05: [fix](s3_writer) init member's value to avoid undefined behavior (#21233)
This is an automated email from the ASF dual-hosted git repository.
kxiao pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git
commit af960a6d4792701c70c5a187dd2035e35f93df66
Author: Mingyu Chen <mo...@163.com>
AuthorDate: Tue Jun 27 20:01:20 2023 +0800
[fix](s3_writer) init member's value to avoid undefined behavior (#21233)
---
be/src/io/fs/s3_file_write_bufferpool.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/be/src/io/fs/s3_file_write_bufferpool.h b/be/src/io/fs/s3_file_write_bufferpool.h
index b69964b48e..660cbc8e8a 100644
--- a/be/src/io/fs/s3_file_write_bufferpool.h
+++ b/be/src/io/fs/s3_file_write_bufferpool.h
@@ -104,8 +104,8 @@ struct S3FileBuffer : public std::enable_shared_from_this<S3FileBuffer> {
// caller of this buf could use this callback to do syncronization
Callback _on_finish_upload = nullptr;
Status _status;
- size_t _offset;
- size_t _size;
+ size_t _offset {0};
+ size_t _size {0};
std::shared_ptr<std::iostream> _stream_ptr;
// only served as one reserved buffer
Slice _buf;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org