@@ -89,21 +89,6 @@ func NewProvisionModeLocal(ctx context.Context, config Config, dockerClient *cli
89
89
},
90
90
}
91
91
92
- thinCloneManager , err := thinclones .NewManager (p .config .ModeLocal .ThinCloneManager ,
93
- p .runner , thinclones.ManagerConfig {
94
- Pool : p .config .ModeLocal .ClonePool ,
95
- SnapshotFilterSuffix : p .config .ModeLocal .SnapshotFilterSuffix ,
96
- MountDir : p .config .ModeLocal .MountDir ,
97
- OSUsername : p .config .OSUsername ,
98
- ClonePrefix : ClonePrefix ,
99
- })
100
-
101
- if err != nil {
102
- return nil , errors .Wrap (err , "failed to initialize thin-clone manager" )
103
- }
104
-
105
- p .thinCloneManager = thinCloneManager
106
-
107
92
if len (p .config .ModeLocal .MountDir ) == 0 {
108
93
p .config .ModeLocal .MountDir = "/var/lib/dblab/clones/"
109
94
}
@@ -128,6 +113,21 @@ func NewProvisionModeLocal(ctx context.Context, config Config, dockerClient *cli
128
113
p .config .PgMgmtPassword = DefaultPassword
129
114
}
130
115
116
+ thinCloneManager , err := thinclones .NewManager (p .config .ModeLocal .ThinCloneManager ,
117
+ p .runner , thinclones.ManagerConfig {
118
+ Pool : p .config .ModeLocal .ClonePool ,
119
+ SnapshotFilterSuffix : p .config .ModeLocal .SnapshotFilterSuffix ,
120
+ MountDir : p .config .ModeLocal .MountDir ,
121
+ OSUsername : p .config .OSUsername ,
122
+ ClonePrefix : ClonePrefix ,
123
+ })
124
+
125
+ if err != nil {
126
+ return nil , errors .Wrap (err , "failed to initialize thin-clone manager" )
127
+ }
128
+
129
+ p .thinCloneManager = thinCloneManager
130
+
131
131
return p , nil
132
132
}
133
133
0 commit comments