10000 Use PING type response for dump, so we never serialize · devsnippet/phpredis@ca7868d · GitHub
[go: up one dir, main page]

Skip to content

Commit ca7868d

Browse files
Use PING type response for dump, so we never serialize
1 parent 048e4b2 commit ca7868d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

redis.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5860,9 +5860,11 @@ PHP_METHOD(Redis, dump) {
58605860
// Kick off our request
58615861
REDIS_PROCESS_REQUEST(redis_sock, cmd, cmd_len);
58625862
IF_ATOMIC() {
5863-
redis_string_response(INTERNAL_FUNCTION_PARAM_PASSTHRU, redis_sock, NULL, NULL);
5863+
redis_ping_response(INTERNAL_FUNCTION_PARAM_PASSTHRU, redis_sock, NULL, NULL);
5864+
//redis_string_response(INTERNAL_FUNCTION_PARAM_PASSTHRU, redis_sock, NULL, NULL);
58645865
}
5865-
REDIS_PROCESS_RESPONSE(redis_string_response);
5866+
REDIS_PROCESS_RESPONSE(redis_ping_response);
5867+
//REDIS_PROCESS_RESPONSE(redis_string_response);
58665868
}
58675869

58685870
/*

0 commit comments

Comments
 (0)
0