Skip to content

Commit

Permalink
fixed one bug in redis_key::type which lost HASH type
Browse files Browse the repository at this point in the history
  • Loading branch information
ubuntu14 committed Dec 29, 2015
1 parent c700540 commit 3501052
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib_acl_cpp/changes.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
�޸���ʷ�б���

-----------------------------------------------------------------------
394) 2015.12.29
394.1) bugfix: redis_key ���е� type ����������һ�� hash ����

393) 2015.12.28
393.1) bugfix: �� xml1, xml2 �еĺ��� getFirstElementByTag �ڲ�û���ж� NULL
393.2) bugfix: ȡ���� http_request ���е� acl_assert(client_) �����ж�
Expand Down
2 changes: 2 additions & 0 deletions lib_acl_cpp/src/redis/redis_key.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,8 @@ redis_key_t redis_key::type(const char* key)
return REDIS_KEY_NONE;
else if (strcasecmp(ptr, "string") == 0)
return REDIS_KEY_STRING;
else if (strcasecmp(ptr, "hash") == 0)
return REDIS_KEY_HASH;
else if (strcasecmp(ptr, "list") == 0)
return REDIS_KEY_LIST;
else if (strcasecmp(ptr, "set") == 0)
Expand Down

0 comments on commit 3501052

Please sign in to comment.