From 58c1f135c549e262950a256e4cfb3328c9e26caf Mon Sep 17 00:00:00 2001 From: bz Date: Wed, 16 Jun 2021 13:23:32 +0800 Subject: [PATCH] fix bug that hash map/set entry exist when adding partition --- src/rootserver/ob_replica_creator.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rootserver/ob_replica_creator.h b/src/rootserver/ob_replica_creator.h index 605549f96..db7301998 100644 --- a/src/rootserver/ob_replica_creator.h +++ b/src/rootserver/ob_replica_creator.h @@ -237,6 +237,7 @@ int ObReplicaCreator::alloc_partitions_for_add(const SCHEMA& table, const SCHEMA RS_LOG(WARN, "invalid table", K(ret), K(table)); } else if (OB_FAIL(schema_for_add.assign(table))) { RS_LOG(WARN, "fail to assign table", K(ret)); + } else if (FALSE_IT(schema_for_add.reset_dropped_partition())) { } else if (OB_FAIL(schema_for_add.try_assign_part_array(inc_table))) { RS_LOG(WARN, "fail to try assign part array", K(ret)); } else if (OB_FAIL(schema_for_add.try_assign_def_subpart_array(table))) {