File tree Expand file tree Collapse file tree 3 files changed +44
-11
lines changed Expand file tree Collapse file tree 3 files changed +44
-11
lines changed Original file line number Diff line number Diff line change
1
+ ## 2.3.4.1
2
+
3
+ ### Changed
4
+
5
+ * fix for MS SQL snapshot in 5.2
6
+
1
7
## 2.3.4
2
8
3
9
### Added
Original file line number Diff line number Diff line change @@ -248,17 +248,44 @@ sub snapshot
248
248
}
249
249
250
250
my %snapshot_type ;
251
+
252
+ if ($self -> {_dlpxObject }-> getApi() lt " 1.9" ) {
251
253
252
- if ($self -> getType() eq ' VDB' ) {
253
- %snapshot_type = (
254
- " type" => " MSSqlSyncParameters"
255
- );
256
- }
257
- else {
258
- %snapshot_type = (
259
- " type" => " MSSqlSyncParameters" ,
260
- " loadFromBackup" => $frombackup_json
261
- );
254
+ if ($self -> getType() eq ' VDB' ) {
255
+ %snapshot_type = (
256
+ " type" => " MSSqlSyncParameters"
257
+ );
258
+ }
259
+ else {
260
+ %snapshot_type = (
261
+ " type" => " MSSqlSyncParameters" ,
262
+ " loadFromBackup" => $frombackup_json
263
+ );
264
+ }
265
+
266
+ } else {
267
+
268
+ if ($self -> getType() eq ' VDB' ) {
269
+ # it doesn't matter - but it has to be a valid option
270
+ # taken from GUI
271
+ %snapshot_type = (
272
+ " type" => " MSSqlNewCopyOnlyFullBackupSyncParameters" ,
273
+ " compressionEnabled" => JSON::false
274
+ );
275
+ }
276
+ else {
277
+ if ( $frombackup eq " yes" ) {
278
+ %snapshot_type = (
279
+ " type" => " MSSqlExistingMostRecentBackupSyncParameters"
280
+ );
281
+ } else {
282
+ %snapshot_type = (
283
+ " type" => " MSSqlNewCopyOnlyFullBackupSyncParameters" ,
284
+ " compressionEnabled" => JSON::false
285
+ );
286
+ }
287
+ }
288
+
262
289
}
263
290
return $self -> VDB_obj::snapshot(\%snapshot_type ) ;
264
291
}
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ use File::Spec;
29
29
30
30
use lib ' ../lib' ;
31
31
32
- our $version = ' 2.3.4' ;
32
+ our $version = ' 2.3.4.1 ' ;
33
33
34
34
sub logger {
35
35
my $debug = shift ;
You can’t perform that action at this time.
0 commit comments