aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorKegsay <kegan@matrix.org>2020-10-13 10:20:27 +0100
committerGitHub <noreply@github.com>2020-10-13 10:20:27 +0100
commitd7ea814fa80ea2aba671be17c7d985d1191fbf6a (patch)
treea27cc30fac9d2ff278784ac337e14bff034c7e76 /internal
parent73bc28b11f10a7ff1582b9e5b9cffe53cd029104 (diff)
Wrap NewMembershipUpdater in a db writer (#1515)
Diffstat (limited to 'internal')
-rw-r--r--internal/sqlutil/trace.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/sqlutil/trace.go b/internal/sqlutil/trace.go
index 23359b50..0684e92e 100644
--- a/internal/sqlutil/trace.go
+++ b/internal/sqlutil/trace.go
@@ -93,7 +93,7 @@ func trackGoID(query string) {
if strings.HasPrefix(q, "SELECT") {
return // SELECTs can go on other goroutines
}
- logrus.Warnf("unsafe goid: SQL executed not on an ExclusiveWriter: %s", q)
+ logrus.Warnf("unsafe goid %d: SQL executed not on an ExclusiveWriter: %s", thisGoID, q)
}
// Open opens a database specified by its database driver name and a driver-specific data source name,