Skip to content

Commit e11a416

Browse files
committed
minor
1 parent 5f51d83 commit e11a416

File tree

1 file changed

+2
-4
lines changed
  • crates/iceberg/src/transaction

1 file changed

+2
-4
lines changed

crates/iceberg/src/transaction/mod.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,7 @@ impl Transaction {
123123
}
124124

125125
async fn do_commit(&mut self, catalog: &dyn Catalog) -> Result<Table> {
126-
let base_table_identifier = self.table.identifier().to_owned();
127-
128-
let refreshed = catalog.load_table(&base_table_identifier.clone()).await?;
126+
let refreshed = catalog.load_table(self.table.identifier()).await?;
129127

130128
if self.table.metadata() != refreshed.metadata()
131129
|| self.table.metadata_location() != refreshed.metadata_location()
@@ -150,7 +148,7 @@ impl Transaction {
150148
}
151149

152150
let table_commit = TableCommit::builder()
153-
.ident(base_table_identifier)
151+
.ident(self.table.identifier().to_owned())
154152
.updates(existing_updates)
155153
.requirements(existing_requirements)
156154
.build();

0 commit comments

Comments
 (0)