@@ -369,13 +369,13 @@ ResultType Catalog::CreateTable(const std::string &database_name,
369369 // Update pg_table with table info
370370 pg_table->InsertTable (table_oid, table_name, schema_name,
371371 database_object->GetDatabaseOid (),
372- table->GetDefaultLayout ()->GetOid (), pool_.get (), txn);
372+ table->GetDefaultLayout ()->GetOid (), pool_.get (), txn);
373373 oid_t column_id = 0 ;
374374 for (const auto &column : table->GetSchema ()->GetColumns ()) {
375375 pg_attribute->InsertColumn (table_oid, column.GetName (), column_id,
376376 column.GetOffset (), column.GetType (),
377377 column.GetLength (), column.IsInlined (),
378- column.GetConstraints (), pool_.get (), txn);
378+ column.GetConstraints (), pool_.get (), txn);
379379
380380 // Create index on unique single column
381381 if (column.IsUnique ()) {
@@ -393,11 +393,11 @@ ResultType Catalog::CreateTable(const std::string &database_name,
393393
394394 // Create layout as default layout
395395 auto pg_layout =
396- catalog_map_[database_object->GetDatabaseOid ()]->GetLayoutCatalog ();
396+ catalog_map_[database_object->GetDatabaseOid ()]->GetLayoutCatalog ();
397397 auto default_layout = table->GetDefaultLayout ();
398398 if (!pg_layout->InsertLayout (table_oid, default_layout, pool_.get (), txn))
399399 throw CatalogException (" Failed to create a new layout for table "
400- + table_name);
400+ + table_name);
401401
402402 return ResultType::SUCCESS;
403403}
@@ -594,10 +594,10 @@ std::shared_ptr<const storage::Layout> Catalog::CreateLayout(
594594 // Add the layout the pg_layout table
595595 auto pg_layout = catalog_map_[database_oid]->GetLayoutCatalog ();
596596 if (pg_layout->GetLayoutWithOid (table_oid, new_layout->GetOid (), txn)
597- == nullptr &&
598- !pg_layout->InsertLayout (table_oid, new_layout, pool_.get (), txn)) {
599- LOG_ERROR (" Failed to create a new layout for table %u" , table_oid);
600- return nullptr ;
597+ == nullptr &&
598+ !pg_layout->InsertLayout (table_oid, new_layout, pool_.get (), txn)) {
599+ LOG_ERROR (" Failed to create a new layout for table %u" , table_oid);
600+ return nullptr ;
601601 }
602602 return new_layout;
603603}
@@ -615,7 +615,7 @@ std::shared_ptr<const storage::Layout> Catalog::CreateDefaultLayout(
615615
616616 // update table catalog
617617 catalog_map_[database_oid]->GetTableCatalog ()
618- ->UpdateDefaultLayoutOid (new_layout->GetOid (), table_oid, txn);
618+ ->UpdateDefaultLayoutOid (new_layout->GetOid (), table_oid, txn);
619619 }
620620 return new_layout;
621621}
@@ -853,16 +853,16 @@ ResultType Catalog::DropLayout(oid_t database_oid, oid_t table_oid,
853853 table->ResetDefaultLayout ();
854854 auto new_default_layout = table->GetDefaultLayout ();
855855 if (pg_layout->GetLayoutWithOid (table_oid, new_default_layout->GetOid (),
856- txn) == nullptr &&
857- !pg_layout->InsertLayout (table_oid, new_default_layout,
858- pool_.get (), txn)) {
856+ txn) == nullptr &&
857+ !pg_layout->InsertLayout (table_oid, new_default_layout,
858+ pool_.get (), txn)) {
859859 LOG_DEBUG (" Failed to create a new layout for table %d" , table_oid);
860860 return ResultType::FAILURE;
861861 }
862862
863863 // update table catalog
864864 catalog_map_[database_oid]->GetTableCatalog ()
865- ->UpdateDefaultLayoutOid (new_default_layout->GetOid (), table_oid, txn);
865+ ->UpdateDefaultLayoutOid (new_default_layout->GetOid (), table_oid, txn);
866866 }
867867
868868 return ResultType::SUCCESS;
0 commit comments