Skip to content

Commit 01c4cd2

Browse files
authored
cli: do not clear metadata during metadata apply (close hasura#6115) (hasura#6119)
hasura#6119
1 parent 153054b commit 01c4cd2

2 files changed

Lines changed: 4 additions & 12 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ This release contains the [PDV refactor (#4111)](https://github.com/hasura/graph
135135
- console: down migrations improvements (close #3503, #4988) (#4790)
136136
- cli: add missing global flags for seed command (#5565)
137137
- cli: allow seeds as alias for seed command (#5693)
138+
- cli: fix bug in metadata apply which made the server aquire some redundant and unnecessary locks (close #6115)
138139
- docs: add docs page on networking with docker (close #4346) (#4811)
139140
- docs: add tabs for console / cli / api workflows (close #3593) (#4948)
140141
- docs: add postgres concepts page to docs (close #4440) (#4471)

‎cli/migrate/database/hasuradb/metadata.go‎

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -180,18 +180,9 @@ func (h *HasuraDB) ApplyMetadata() error {
180180
if err != nil {
181181
return err
182182
}
183-
query := HasuraInterfaceBulk{
184-
Type: "bulk",
185-
Args: []interface{}{
186-
HasuraInterfaceQuery{
187-
Type: "clear_metadata",
188-
Args: HasuraArgs{},
189-
},
190-
HasuraInterfaceQuery{
191-
Type: "replace_metadata",
192-
Args: obj,
193-
},
194-
},
183+
query := HasuraInterfaceQuery{
184+
Type: "replace_metadata",
185+
Args: obj,
195186
}
196187
resp, body, err := h.sendv1Query(query)
197188
if err != nil {

0 commit comments

Comments
 (0)