Skip to content

Commit

Permalink
fix apiCreated use in PutAction
Browse files Browse the repository at this point in the history
  • Loading branch information
pdowler committed Sep 12, 2024
1 parent db3b2df commit 37563dc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,6 @@ private void createTable(TapSchemaDAO ts, String schemaName, String tableName) t
if (td != null) {
throw new ResourceAlreadyExistsException("table " + tableName + " already exists");
}
// flag table as created using the API to allow table deletion in the DeleteAction
td.apiCreated = true;

Profiler prof = new Profiler(PutAction.class);
DatabaseTransactionManager tm = new DatabaseTransactionManager(ds);
Expand All @@ -233,6 +231,8 @@ private void createTable(TapSchemaDAO ts, String schemaName, String tableName) t
prof.checkpoint("create-table");

// add to tap_schema
// flag table as created using the API to allow table deletion in the DeleteAction
inputTable.apiCreated = true;
ts.put(inputTable);
prof.checkpoint("insert-into-tap-schema");

Expand Down

0 comments on commit 37563dc

Please sign in to comment.