galera_cluster_migrations 1.0.1.beta1 → 1.0.1.beta2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/galera_cluster_migrations.rb +8 -0
- data/lib/galera_cluster_migrations/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a039abdb8d30eb3a9733e82b20e3b2ce15ec02cf
|
4
|
+
data.tar.gz: f2600f223d5368aa7654747330b73115b3a13cd7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f386108939b09dfd8e0690c4701a4a1d56235b57f11fbcef1168e3d7058a31c806ebe12e955b21bde6c113c694133a345e963d906d98ca644321e32e351256f9
|
7
|
+
data.tar.gz: e698d487d172f065f0a703280a4a62624b84f203061953810332be81532b3cc890c5ca063b0670ea96e9c0fe27fe26178acd6fd6538cc602fea5870da95a9e5c
|
@@ -17,6 +17,7 @@ module GaleraClusterMigrations
|
|
17
17
|
def with_rsu
|
18
18
|
enable_rsu
|
19
19
|
yield
|
20
|
+
disable_wsrep_on
|
20
21
|
ensure
|
21
22
|
enable_toi
|
22
23
|
end
|
@@ -27,5 +28,12 @@ module GaleraClusterMigrations
|
|
27
28
|
execute "SET GLOBAL wsrep_OSU_method=TOI"
|
28
29
|
end
|
29
30
|
end
|
31
|
+
|
32
|
+
def disable_wsrep_on
|
33
|
+
say "Setting wsrep_on to OFF"
|
34
|
+
unless [:development, :test].include?(Rails.env)
|
35
|
+
execute "SET wsrep_on=OFF"
|
36
|
+
end
|
37
|
+
end
|
30
38
|
end
|
31
39
|
end
|