This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.0 by this push:
new 2a75c100fde branch-3.0: [Fix](meta tool) Fix meta tool #51522 (#51534)
2a75c100fde is described below
commit 2a75c100fde5f1752a0972920e3d982c66865fec
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Thu Jun 12 10:13:45 2025 +0800
branch-3.0: [Fix](meta tool) Fix meta tool #51522 (#51534)
Cherry-picked from #51522
Co-authored-by: bobhan1 <[email protected]>
---
be/src/tools/meta_tool.cpp | 14 +-------------
1 file changed, 1 insertion(+), 13 deletions(-)
diff --git a/be/src/tools/meta_tool.cpp b/be/src/tools/meta_tool.cpp
index 076b4fae18b..d233f53966d 100644
--- a/be/src/tools/meta_tool.cpp
+++ b/be/src/tools/meta_tool.cpp
@@ -34,37 +34,24 @@
#include "io/fs/local_file_system.h"
#include "json2pb/pb_to_json.h"
#include "olap/data_dir.h"
-#include "olap/olap_define.h"
#include "olap/options.h"
-#include "olap/rowset/segment_v2/binary_plain_page.h"
#include "olap/rowset/segment_v2/column_reader.h"
#include "olap/storage_engine.h"
#include "olap/tablet_meta.h"
#include "olap/tablet_meta_manager.h"
-#include "olap/utils.h"
#include "util/coding.h"
#include "util/crc32c.h"
-using std::filesystem::path;
using doris::DataDir;
using doris::StorageEngine;
-using doris::OlapMeta;
using doris::Status;
using doris::TabletMeta;
using doris::TabletMetaManager;
using doris::Slice;
using strings::Substitute;
using doris::segment_v2::SegmentFooterPB;
-using doris::segment_v2::ColumnReader;
-using doris::segment_v2::PageHandle;
-using doris::segment_v2::PagePointer;
-using doris::segment_v2::ColumnReaderOptions;
-using doris::segment_v2::ColumnIteratorOptions;
-using doris::segment_v2::PageFooterPB;
using doris::io::FileReaderSPtr;
-const std::string HEADER_PREFIX = "tabletmeta_";
-
DEFINE_string(root_path, "", "storage root path");
DEFINE_string(operation, "get_meta",
"valid operation: get_meta, flag, load_meta, delete_meta,
show_meta");
@@ -321,6 +308,7 @@ void show_segment_footer(const std::string& file_name) {
}
int main(int argc, char** argv) {
+ SCOPED_INIT_THREAD_CONTEXT();
std::string usage = get_usage(argv[0]);
gflags::SetUsageMessage(usage);
google::ParseCommandLineFlags(&argc, &argv, true);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]