This is an automated email from the ASF dual-hosted git repository.
w41ter pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.1 by this push:
new 68d1064aa90 [chore](persist) reduce truncate table operation log size
#40422 (#40555)
68d1064aa90 is described below
commit 68d1064aa90279414008aee010c6a5685d297d70
Author: walter <[email protected]>
AuthorDate: Mon Sep 9 20:01:07 2024 +0800
[chore](persist) reduce truncate table operation log size #40422 (#40555)
cherry pick from #40422
---
.../java/org/apache/doris/persist/TruncateTableInfo.java | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/persist/TruncateTableInfo.java
b/fe/fe-core/src/main/java/org/apache/doris/persist/TruncateTableInfo.java
index 50840cf56a6..a9a91f28839 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/persist/TruncateTableInfo.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/persist/TruncateTableInfo.java
@@ -51,7 +51,7 @@ public class TruncateTableInfo implements Writable {
}
public TruncateTableInfo(long dbId, String db, long tblId, String table,
List<Partition> partitions,
- boolean isEntireTable, String rawSql) {
+ boolean isEntireTable, String rawSql) {
this.dbId = dbId;
this.db = db;
this.tblId = tblId;
@@ -106,6 +106,14 @@ public class TruncateTableInfo implements Writable {
@Override
public String toString() {
- return toJson();
+ return "TruncateTableInfo{"
+ + "dbId=" + dbId
+ + ", db='" + db + '\''
+ + ", tblId=" + tblId
+ + ", table='" + table + '\''
+ + ", isEntireTable=" + isEntireTable
+ + ", rawSql='" + rawSql + '\''
+ + ", partitions_size=" + partitions.size()
+ + '}';
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]