Protect Deflate with GIL acquiring
ddd2f011 removed this.
This commit is contained in:
parent
7245d36553
commit
8d50d77001
@ -831,8 +831,10 @@ static bool _PylibMC_RunSetCommand(PylibMC_Client* self,
|
|||||||
size_t compressed_len = 0;
|
size_t compressed_len = 0;
|
||||||
|
|
||||||
if (min_compress && value_len >= min_compress) {
|
if (min_compress && value_len >= min_compress) {
|
||||||
|
Py_BLOCK_THREADS;
|
||||||
_PylibMC_Deflate(value, value_len,
|
_PylibMC_Deflate(value, value_len,
|
||||||
&compressed_value, &compressed_len);
|
&compressed_value, &compressed_len);
|
||||||
|
Py_UNBLOCK_THREADS;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (compressed_value != NULL) {
|
if (compressed_value != NULL) {
|
||||||
|
Reference in New Issue
Block a user