Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavlo Strokov <pstrokov@gitlab.com>2020-03-10 20:00:05 +0300
committerPavlo Strokov <pstrokov@gitlab.com>2020-03-10 20:00:05 +0300
commitc5965df04cf581c2e11fa0dba9bbf56fe40e4282 (patch)
tree23cc2a74c4e9724da2f16b83174d2a6c78633187 /internal/praefect/datastore/glsql/testing_test.go
parent38f68c610c0b8394aa2aacac5b3a1460293e0383 (diff)
Praefect: Move replication queue to database
Implementation of the queue for replication jobs using Postgres database. It is contains three tables: one for replication jobs itself, one to make a locks for a storage to support single job run and the last one to track the lock acquisition if there is multiple jobs. It also includes changes to glsql package that depends on database independently. Now each call to GetDB will truncate existing tables with identity restart and cascade removal. 'test-postgres' task now has '-count=1' flag to prevent caching. Part of: https://gitlab.com/gitlab-org/gitaly/issues/2166
Diffstat (limited to 'internal/praefect/datastore/glsql/testing_test.go')
-rw-r--r--internal/praefect/datastore/glsql/testing_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/praefect/datastore/glsql/testing_test.go b/internal/praefect/datastore/glsql/testing_test.go
index ad576d1ba..6d1035bba 100644
--- a/internal/praefect/datastore/glsql/testing_test.go
+++ b/internal/praefect/datastore/glsql/testing_test.go
@@ -9,7 +9,7 @@ import (
)
func TestDB_Truncate(t *testing.T) {
- db := GetDB(t)
+ db := getDB(t)
_, err := db.Exec("CREATE TABLE truncate_tbl(id BIGSERIAL PRIMARY KEY)")
require.NoError(t, err)