diff --git a/src/storage/tablet/ob_tablet_meta.cpp b/src/storage/tablet/ob_tablet_meta.cpp index 489f4e872b..3521a0ae12 100644 --- a/src/storage/tablet/ob_tablet_meta.cpp +++ b/src/storage/tablet/ob_tablet_meta.cpp @@ -1143,6 +1143,7 @@ void ObMigrationTabletParam::reset() ddl_execution_id_ = -1; ddl_cluster_version_ = 0; max_serialized_medium_scn_ = 0; + allocator_.reset(); } int ObMigrationTabletParam::assign(const ObMigrationTabletParam ¶m) diff --git a/src/storage/tablet/ob_tablet_meta.h b/src/storage/tablet/ob_tablet_meta.h index e2ed2bbc2f..2886f76f4c 100644 --- a/src/storage/tablet/ob_tablet_meta.h +++ b/src/storage/tablet/ob_tablet_meta.h @@ -197,7 +197,7 @@ struct ObMigrationTabletParam final { public: ObMigrationTabletParam(); - ~ObMigrationTabletParam() = default; + ~ObMigrationTabletParam() { reset(); } ObMigrationTabletParam(const ObMigrationTabletParam &) = delete; ObMigrationTabletParam &operator=(const ObMigrationTabletParam &) = delete; public: