SQLStore: Prevent concurrent migrations (#44101)

* SQLStore: Prevent concurrent migrations

* Hide behind a feature toggle

* Configurable locking attempt timeout

* Update docs/sources/administration/configuration.md

Co-authored-by: Igor Suleymanov <radiohead@users.noreply.github.com>
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
This commit is contained in:
Sofia Papagiannaki
2022-02-15 18:54:27 +02:00
committed by GitHub
co-authored by Igor Suleymanov achatterjee-grafana
parent 163b570f5d
commit d718ee1918
18 changed files with 521 additions and 42 deletions
+1 -1
View File
@@ -546,7 +546,7 @@ func (m *SQLStoreMock) UpdateDataSource(ctx context.Context, cmd *models.UpdateD
return m.ExpectedError
}
func (m *SQLStoreMock) Migrate() error {
func (m *SQLStoreMock) Migrate(_ bool) error {
return m.ExpectedError
}