Skip to content

Commit 3501052

Browse files
author
ubuntu14
committed
fixed one bug in redis_key::type which lost HASH type
1 parent c700540 commit 3501052

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

lib_acl_cpp/changes.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
�޸���ʷ�б���
22

33
-----------------------------------------------------------------------
4+
394) 2015.12.29
5+
394.1) bugfix: redis_key ���е� type ����������һ�� hash ����
6+
47
393) 2015.12.28
58
393.1) bugfix: �� xml1, xml2 �еĺ��� getFirstElementByTag �ڲ�û���ж� NULL
69
393.2) bugfix: ȡ���� http_request ���е� acl_assert(client_) �����ж�

lib_acl_cpp/src/redis/redis_key.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,8 @@ redis_key_t redis_key::type(const char* key)
418418
return REDIS_KEY_NONE;
419419
else if (strcasecmp(ptr, "string") == 0)
420420
return REDIS_KEY_STRING;
421+
else if (strcasecmp(ptr, "hash") == 0)
422+
return REDIS_KEY_HASH;
421423
else if (strcasecmp(ptr, "list") == 0)
422424
return REDIS_KEY_LIST;
423425
else if (strcasecmp(ptr, "set") == 0)

0 commit comments

Comments
 (0)