!3671 gs_probackup: Multithread backup supports pglz compression

Merge pull request !3671 from 吴岳川/master
This commit is contained in:
opengauss_bot
2023-07-05 11:06:15 +00:00
committed by Gitee
2 changed files with 2 additions and 5 deletions

View File

@ -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,

View File

@ -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");
} }
} }