Protect Deflate with GIL acquiring

ddd2f011 removed this.
master
lericson 2010-10-10 15:14:53 +02:00
parent 7245d36553
commit 8d50d77001
1 changed files with 2 additions and 0 deletions

View File

@ -831,8 +831,10 @@ static bool _PylibMC_RunSetCommand(PylibMC_Client* self,
size_t compressed_len = 0;
if (min_compress && value_len >= min_compress) {
Py_BLOCK_THREADS;
_PylibMC_Deflate(value, value_len,
&compressed_value, &compressed_len);
Py_UNBLOCK_THREADS;
}
if (compressed_value != NULL) {