I have a program where depending on command line arguments I either want to connect to cluster or to a single instance outside of the cluster. While the version that connects to the cluster works just fine, the other gives me this and crashes...
terminate called after throwing an instance of 'RedisCluster::LogicError'
what():
HERE??
Aborted (core dumped)
The HERE is a print statement that confirms the exact location of the crash which is:
printf("HERE??");
port = (port == NULL || port == 0) ? 6380 : port;
cluster_p = HiredisCommand<>::createCluster( "127.0.0.1", port );
printf("Redis Connection Made to %d ! \n", port);
Is it possible to connect to a non-cluster node??
I have a program where depending on command line arguments I either want to connect to cluster or to a single instance outside of the cluster. While the version that connects to the cluster works just fine, the other gives me this and crashes...
The
HERE
is a print statement that confirms the exact location of the crash which is:Obviously, 'Connection Made is never printed"