Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/RedisClustr.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,8 @@ RedisClustr.prototype.getSlots = function(cb) {
RedisClustr.prototype.selectClient = function(key, conf) {
var self = this;

// this command doesnt have keys, return any connection
if (conf.keyless) return self.getRandomConnection();
// this command doesnt have keys and is read only, return any connection
if (conf.keyless && conf.ReadOnly) return self.getRandomConnection();

if (Array.isArray(key)) key = key[0];
if (Buffer.isBuffer(key)) key = key.toString();
Expand Down