@@ -22,9 +22,6 @@ func (c *clientNative) FrontendCfgSnippetSet(frontendName string, value []string
22
22
} else {
23
23
err = config .Set ("frontend" , frontendName , "config-snippet" , types.StringSliceC {Value : value })
24
24
}
25
- if err != nil {
26
- c .activeTransactionHasChanges = true
27
- }
28
25
return err
29
26
}
30
27
@@ -33,7 +30,6 @@ func (c *clientNative) FrontendCreate(frontend models.Frontend) error {
33
30
if err != nil {
34
31
return err
35
32
}
36
- c .activeTransactionHasChanges = true
37
33
return configuration .CreateFrontend (& frontend , c .activeTransaction , 0 )
38
34
}
39
35
@@ -42,7 +38,6 @@ func (c *clientNative) FrontendDelete(frontendName string) error {
42
38
if err != nil {
43
39
return err
44
40
}
45
- c .activeTransactionHasChanges = true
46
41
return configuration .DeleteFrontend (frontendName , c .activeTransaction , 0 )
47
42
}
48
43
@@ -72,7 +67,6 @@ func (c *clientNative) FrontendEdit(frontend models.Frontend) error {
72
67
if err != nil {
73
68
return err
74
69
}
75
- c .activeTransactionHasChanges = true
76
70
return configuration .EditFrontend (frontend .Name , & frontend , c .activeTransaction , 0 )
77
71
}
78
72
@@ -143,7 +137,6 @@ func (c *clientNative) FrontendBindCreate(frontend string, bind models.Bind) err
143
137
if err != nil {
144
138
return err
145
139
}
146
- c .activeTransactionHasChanges = true
147
140
return configuration .CreateBind ("frontend" , frontend , & bind , c .activeTransaction , 0 )
148
141
}
149
142
@@ -152,7 +145,6 @@ func (c *clientNative) FrontendBindEdit(frontend string, bind models.Bind) error
152
145
if err != nil {
153
146
return err
154
147
}
155
- c .activeTransactionHasChanges = true
156
148
return configuration .EditBind (bind .Name , "frontend" , frontend , & bind , c .activeTransaction , 0 )
157
149
}
158
150
@@ -161,7 +153,6 @@ func (c *clientNative) FrontendBindDelete(frontend string, bind string) error {
161
153
if err != nil {
162
154
return err
163
155
}
164
- c .activeTransactionHasChanges = true
165
156
return configuration .DeleteBind (bind , "frontend" , frontend , c .activeTransaction , 0 )
166
157
}
167
158
@@ -170,7 +161,6 @@ func (c *clientNative) FrontendHTTPRequestRuleCreate(frontend string, rule model
170
161
if err != nil {
171
162
return err
172
163
}
173
- c .activeTransactionHasChanges = true
174
164
if ingressACL != "" {
175
165
rule .Cond = "if"
176
166
rule .CondTest = fmt .Sprintf ("%s %s" , ingressACL , rule .CondTest )
@@ -183,7 +173,6 @@ func (c *clientNative) FrontendHTTPResponseRuleCreate(frontend string, rule mode
183
173
if err != nil {
184
174
return err
185
175
}
186
- c .activeTransactionHasChanges = true
187
176
if ingressACL != "" {
188
177
rule .Cond = "if"
189
178
rule .CondTest = fmt .Sprintf ("%s %s" , ingressACL , rule .CondTest )
@@ -196,7 +185,6 @@ func (c *clientNative) FrontendTCPRequestRuleCreate(frontend string, rule models
196
185
if err != nil {
197
186
return err
198
187
}
199
- c .activeTransactionHasChanges = true
200
188
if ingressACL != "" {
201
189
rule .Cond = "if"
202
190
rule .CondTest = fmt .Sprintf ("%s %s" , ingressACL , rule .CondTest )
@@ -211,7 +199,6 @@ func (c *clientNative) FrontendRuleDeleteAll(frontend string) {
211
199
logger .Error (err )
212
200
return
213
201
}
214
- c .activeTransactionHasChanges = true
215
202
216
203
for {
217
204
err := configuration .DeleteHTTPRequestRule (0 , "frontend" , frontend , c .activeTransaction , 0 )
@@ -239,7 +226,6 @@ func (c *clientNative) PeerEntryEdit(peerSection string, peerEntry models.PeerEn
239
226
if err != nil {
240
227
return err
241
228
}
242
- c .activeTransactionHasChanges = true
243
229
return configuration .EditPeerEntry (peerEntry .Name , peerSection , & peerEntry , c .activeTransaction , 0 )
244
230
}
245
231
@@ -248,7 +234,6 @@ func (c *clientNative) PeerEntryCreateOrEdit(peerSection string, peerEntry model
248
234
if err != nil {
249
235
return err
250
236
}
251
- c .activeTransactionHasChanges = true
252
237
err = configuration .EditPeerEntry (peerEntry .Name , peerSection , & peerEntry , c .activeTransaction , 0 )
253
238
if err != nil {
254
239
err = configuration .CreatePeerEntry (peerSection , & peerEntry , c .activeTransaction , 0 )
0 commit comments