File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed
core/src/main/java/org/apache/iceberg Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -750,7 +750,7 @@ public TableMetadata buildReplacement(
750
750
751
751
return new Builder (this )
752
752
.upgradeFormatVersion (newFormatVersion )
753
- .resetMainBranch ( )
753
+ .removeRef ( SnapshotRef . MAIN_BRANCH )
754
754
.setCurrentSchema (freshSchema , newLastColumnId .get ())
755
755
.setDefaultPartitionSpec (freshSpec )
756
756
.setDefaultSortOrder (freshSortOrder )
@@ -1360,16 +1360,6 @@ public Builder removeRef(String name) {
1360
1360
return this ;
1361
1361
}
1362
1362
1363
- private Builder resetMainBranch () {
1364
- this .currentSnapshotId = -1 ;
1365
- SnapshotRef ref = refs .remove (SnapshotRef .MAIN_BRANCH );
1366
- if (ref != null ) {
1367
- changes .add (new MetadataUpdate .RemoveSnapshotRef (SnapshotRef .MAIN_BRANCH ));
1368
- }
1369
-
1370
- return this ;
1371
- }
1372
-
1373
1363
/**
1374
1364
* Set a statistics file for a snapshot.
1375
1365
*
You can’t perform that action at this time.
0 commit comments