-
Notifications
You must be signed in to change notification settings - Fork 66
/
default.go
35 lines (24 loc) · 974 Bytes
/
default.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// +build !debug
package inject
var Envs map[string](map[string]bool)
// AddTimeout add delays into the code
func AddTimeout() {}
// AddPingTimeout add delay in ping response
func AddPingTimeout() {}
// AddPreloadTimeout add delay in preload
func AddPreloadTimeout() {}
// AddPunchHoleTimeout add delay in while punching hole
func AddPunchHoleTimeout() {}
// DisablePunchHoles is used for disabling punch holes
func DisablePunchHoles() bool { return false }
// PanicAfterPrepareRebuild is used for crashing the replica
// just after prepare rebuild.
func PanicAfterPrepareRebuild() {}
// PanicWhileSettingCheckpoint is used for crashing the replica
// on receiving set checkpoint REST Call
func PanicWhileSettingCheckpoint(addr string) {}
// UpdateLUNMapTimeoutTriggered is being used to wait for the delay in
// UpdateLUNMap to start
var UpdateLUNMapTimeoutTriggered bool
// AddUpdateLUNMapTimeout adds delay during UpdateLUNMap
func AddUpdateLUNMapTimeout() {}