1
0
mirror of https://github.com/stefanocasazza/ULib.git synced 2025-09-28 19:05:55 +08:00

update redis

This commit is contained in:
stefanocasazza 2019-09-13 19:15:47 +02:00
parent fc2eb21419
commit 74c93d89c0
2 changed files with 32 additions and 5 deletions

View File

@ -686,6 +686,10 @@ bool UREDISClusterMaster::connect(const char* host, unsigned int _port)
{
calculateNodeMap();
subscriptionClient->UEventFd::fd = subscriptionClient->getFd();
subscriptionClient->UEventFd::op_mask |= EPOLLET;
subscriptionClient->UEventFd::op_mask &= ~EPOLLRDHUP;
UServer_Base::addHandlerEvent(subscriptionClient); // NB: we ask to listen for events to a Redis publish channel...
U_RETURN(true);
@ -714,11 +718,6 @@ bool UREDISClusterMaster::clusterSubscribe(const UString& channel, vPFcscs callb
if (subscriptionClient->processRequest(U_RC_MULTIBULK, U_CONSTANT_TO_PARAM("SUBSCRIBE"), U_STRING_TO_PARAM(channel)))
{
if (subscriptionClient->UREDISClient_Base::pchannelCallbackMap == U_NULLPTR)
{
U_NEW(UHashMap<void*>, subscriptionClient->UREDISClient_Base::pchannelCallbackMap, UHashMap<void*>);
}
subscriptionClient->UREDISClient_Base::pchannelCallbackMap->insert(channel, (const void*)callback);
U_RETURN(true);

View File

@ -0,0 +1,28 @@
See http://www.debian.org/ for information about Debian GNU/Linux.
Four Debian releases are available on the main site:
Debian 8.11, or jessie. Access this release through dists/oldoldstable
Debian 8.11 was released Saturday, 23rd June 2018.
Debian 9.11, or stretch. Access this release through dists/oldstable
Debian 9.11 was released Sunday, 8th September 2019.
Debian 10.1, or buster. Access this release through dists/stable
Debian 10.1 was released Saturday, 7th September 2019.
Testing, or bullseye. Access this release through dists/testing. The
current tested development snapshot is named bullseye. Packages which
have been tested in unstable and passed automated tests propagate to
this release.
Unstable, or sid. Access this release through dists/unstable. The
current development snapshot is named sid. Untested candidate
packages for future releases.
Older releases of Debian are at http://archive.debian.org/debian-archive
--- Other directories:
doc Debian documentation.
indices Various indices of the site.
project Experimental packages and other miscellaneous files.
tools Tools for creating boot disks and booting Linux.