storj/satellite/satellitedb
paul cannon 4a26fb5bd5 satellite/satellitedb: don't use crdb.ExecuteTx with postgres
crdb.ExecuteTx is great, but I don't think it will work right with
PostgreSQL. It works by way of cockroach savepoints, which allows
it to react to retryable errors, whereas tx.Commit() doesn't. But
I don't think PostgreSQL savepoints work exactly the same way. I'm not
100% sure, but it doesn't seem worth the risk.

So, I'm switching one case here to use the new dbutil.WithTx instead,
which will use crdb.ExecuteTx if appropriate. The other case doesn't
need a transaction at all.

Change-Id: I39283f3b5d8d47596db7aff5048bb74597e5918f
2020-01-06 23:51:35 +00:00
..
dbx satellite/overlay: Return NodeLastContact instead of a node dossier from 2020-01-06 17:12:30 -05:00
pbold common: separate repository 2019-12-27 14:11:15 +02:00
satellitedbtest satellite/satellitedb/satellitedbtest: skip unconfigured db 2020-01-02 10:51:59 +00:00
testdata satellite/satellitedb: Add nodes_offline_times table for downtime tracking 2019-12-30 15:45:02 -05:00
apikeys.go satellite/satellitedb: unexport satellitedb.DB 2019-12-16 19:09:30 +00:00
attribution_test.go common: separate repository 2019-12-27 14:11:15 +02:00
attribution.go satellite/satellitedb: unexport satellitedb.DB 2019-12-16 19:09:30 +00:00
buckets.go common: separate repository 2019-12-27 14:11:15 +02:00
coinpaymentstxs.go satellite/satellitedb: unexport satellitedb.DB 2019-12-16 19:09:30 +00:00
consoledb_test.go common: separate repository 2019-12-27 14:11:15 +02:00
consoledb.go satellite/satellitedb: unexport satellitedb.DB 2019-12-16 19:09:30 +00:00
containment.go satellite/satellitedb: use transaction helpers in containment 2020-01-06 23:07:38 +00:00
coupons.go satellite/satellitedb: unexport satellitedb.DB 2019-12-16 19:09:30 +00:00
customers.go satellite/satellitedb: unexport satellitedb.DB 2019-12-16 19:09:30 +00:00
database.go satellite/satellitedb/dbx: add cockroach driver type 2020-01-06 18:01:03 +00:00
downtime.go satellite/{downtime,contact}: Add CheckNodeAvailability for use within the downtime tracking chores. 2020-01-02 18:24:11 +00:00
gracefulexit.go common: separate repository 2019-12-27 14:11:15 +02:00
invoiceprojectrecords.go satellite/satellitedb: unexport satellitedb.DB 2019-12-16 19:09:30 +00:00
irreparabledb.go common: separate repository 2019-12-27 14:11:15 +02:00
migrate_cockroach_test.go satellite/satellitedb: improve Cockroach migrate test 2019-12-21 10:58:43 +00:00
migrate_postgres_test.go satellite/satellitedb: improve Cockroach migrate test 2019-12-21 10:58:43 +00:00
migrate.go satellite/satellitedb: Add nodes_offline_times table for downtime tracking 2019-12-30 15:45:02 -05:00
offers.go satellite/satellitedb: don't use crdb.ExecuteTx with postgres 2020-01-06 23:51:35 +00:00
orders.go common: separate repository 2019-12-27 14:11:15 +02:00
overlaycache.go satellite/overlay: Return NodeLastContact instead of a node dossier from 2020-01-06 17:12:30 -05:00
peeridentities.go satellite/satellitedb: use transaction helpers in peeridentities 2020-01-06 20:42:15 +00:00
projectaccounting.go common: separate repository 2019-12-27 14:11:15 +02:00
projectmembers_test.go web/satellite: project members sorting fixed (#3231) 2019-10-15 15:24:53 +03:00
projectmembers.go satellite/satellitedb: unexport satellitedb.DB 2019-12-16 19:09:30 +00:00
projects_test.go satellite: add monkit task to missing places (#2108) 2019-06-04 13:55:37 +02:00
projects.go storagenode/notifications: db created (#3707) 2019-12-16 19:59:01 +02:00
regtokens.go storagenode/notifications: db created (#3707) 2019-12-16 19:59:01 +02:00
repairqueue.go satellite/satellitedb: don't use crdb.ExecuteTx with postgres 2020-01-06 23:51:35 +00:00
resetpasstokens.go storagenode/notifications: db created (#3707) 2019-12-16 19:59:01 +02:00
storagenodeaccounting.go common: separate repository 2019-12-27 14:11:15 +02:00
stripecoinpaymentsdb.go satellite/satellitedb: unexport satellitedb.DB 2019-12-16 19:09:30 +00:00
usercredits.go satellite/satellitedb: use transaction helpers in usercredits 2020-01-06 20:40:45 +00:00
users_test.go Use mail.test as domain in emails (#2224) 2019-06-18 02:28:40 +02:00
users.go storagenode/notifications: db created (#3707) 2019-12-16 19:59:01 +02:00
utils_test.go common: separate repository 2019-12-27 14:11:15 +02:00
utils.go common: separate repository 2019-12-27 14:11:15 +02:00