!3671 gs_probackup: Multithread backup supports pglz compression
Merge pull request !3671 from 吴岳川/master
This commit is contained in:
@ -252,8 +252,8 @@ const PGLZ_Strategy *const PGLZ_strategy_always = &strategy_always_data;
|
|||||||
* Statically allocated work arrays for history
|
* Statically allocated work arrays for history
|
||||||
* ----------
|
* ----------
|
||||||
*/
|
*/
|
||||||
static int16 hist_start[PGLZ_MAX_HISTORY_LISTS];
|
static THR_LOCAL int16 hist_start[PGLZ_MAX_HISTORY_LISTS];
|
||||||
static PGLZ_HistEntry hist_entries[PGLZ_HISTORY_SIZE + 1];
|
static THR_LOCAL PGLZ_HistEntry hist_entries[PGLZ_HISTORY_SIZE + 1];
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Element 0 in hist_entries is unused, and means 'invalid'. Likewise,
|
* Element 0 in hist_entries is unused, and means 'invalid'. Likewise,
|
||||||
|
@ -923,10 +923,7 @@ compress_init(void)
|
|||||||
#ifndef HAVE_LIBZ
|
#ifndef HAVE_LIBZ
|
||||||
if (instance_config.compress_alg == ZLIB_COMPRESS)
|
if (instance_config.compress_alg == ZLIB_COMPRESS)
|
||||||
elog(ERROR, "This build does not support zlib compression");
|
elog(ERROR, "This build does not support zlib compression");
|
||||||
else
|
|
||||||
#endif
|
#endif
|
||||||
if (instance_config.compress_alg == PGLZ_COMPRESS && num_threads > 1)
|
|
||||||
elog(ERROR, "Multithread backup does not support pglz compression");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user