Exemplo n.º 1
0
    def merge(self):
        snapshots = local.get_backup_snapshots(self.cluster_spec)

        local.drop_caches()

        # Pre build 6.5.0-3198 there was no threads flag in merge. To ensure
        # tests run across versions, omit this flag pre this build.
        version, build_number = self.build.split('-')
        build = tuple(map(int, version.split('.'))) + (int(build_number), )

        if build < (6, 5, 0, 3198):
            threads = None
        else:
            threads = self.test_config.backup_settings.threads

        local.cbbackupmgr_merge(self.cluster_spec, snapshots,
                                self.test_config.backup_settings.storage_type,
                                threads)
Exemplo n.º 2
0
    def merge(self):
        snapshots = local.get_backup_snapshots(self.cluster_spec)

        local.drop_caches()

        # Pre build 6.5.0-3198 there was no threads flag in merge. To ensure
        # tests run across versions, omit this flag pre this build.
        version, build_number = self.build.split('-')
        build = tuple(map(int, version.split('.'))) + (int(build_number),)

        if build < (6, 5, 0, 3198):
            threads = None
        else:
            threads = self.test_config.backup_settings.threads

        local.cbbackupmgr_merge(self.cluster_spec,
                                snapshots,
                                self.test_config.backup_settings.storage_type,
                                threads)
Exemplo n.º 3
0
    def merge(self):
        snapshots = local.get_backup_snapshots(self.cluster_spec)

        local.drop_caches()

        local.cbbackupmgr_merge(self.cluster_spec, snapshots)