This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new cfa0f2d69c3 [fix](cloud-merge) init _index_offset in case undefined
behaviour and fix index queue error (#34080)
cfa0f2d69c3 is described below
commit cfa0f2d69c3f59e1d920b11df95f17575b055eaa
Author: Lightman <[email protected]>
AuthorDate: Wed Apr 24 23:08:47 2024 +0800
[fix](cloud-merge) init _index_offset in case undefined behaviour and fix
index queue error (#34080)
---
be/src/io/cache/file_block.cpp | 2 +-
be/src/io/fs/hdfs_file_writer.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/be/src/io/cache/file_block.cpp b/be/src/io/cache/file_block.cpp
index 83552d6d363..2efc26fb1a6 100644
--- a/be/src/io/cache/file_block.cpp
+++ b/be/src/io/cache/file_block.cpp
@@ -182,8 +182,8 @@ Status FileBlock::change_cache_type_self(FileCacheType
new_type) {
new_meta.type = new_type;
RETURN_IF_ERROR(_mgr->_storage->change_key_meta(_key, new_meta));
}
- _key.meta.type = new_type;
_mgr->change_cache_type(_key.hash, _block_range.left, new_type,
cache_lock);
+ _key.meta.type = new_type;
return Status::OK();
}
diff --git a/be/src/io/fs/hdfs_file_writer.h b/be/src/io/fs/hdfs_file_writer.h
index f6fa66c5dbe..2ce865ecfed 100644
--- a/be/src/io/fs/hdfs_file_writer.h
+++ b/be/src/io/fs/hdfs_file_writer.h
@@ -83,7 +83,7 @@ private:
std::string _batch_buffer;
};
BatchBuffer _batch_buffer;
- size_t _index_offset;
+ size_t _index_offset = 0;
};
} // namespace io
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]