Skip to content

Instantly share code, notes, and snippets.

diff --git a/src/cluster.c b/src/cluster.c
index 80ac66e..e14ac6c 100644
--- a/src/cluster.c
+++ b/src/cluster.c
@@ -382,8 +382,21 @@ int clusterLockConfig(char *filename) {
return REDIS_ERR;
CC object.o
CC db.o
db.c: In function 'scanGenericCommand':
db.c:419: warning: 'patlen' may be used uninitialized in this function
db.c:418: warning: 'pat' may be used uninitialized in this function
CC redis-cli.o
redis-cli.c: In function 'pipeMode':
redis-cli.c:1243: warning: dereferencing type-punned pointer will break strict-aliasing rules
#include "fmacros.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <sys/time.h>
#include <assert.h>
#include <unistd.h>
#include <signal.h>
#include <errno.h>
# start with TERM=screen-256color-bce tmux
set -g default-terminal "screen"
# act like GNU screen
unbind C-b
set -g prefix C-a
bind-key C-a last-window
bind-key a send-prefix
# force a reload of the config file
#!/usr/bin/env ruby
Node = Struct.new(:info) do
def to_s
info[:name]
end
def inspect
"new_node(\"#{info[:host]}\", #{info[:port]})"
end
[/tmp/test]% ls
package.json
[/tmp/test]% npm install
npm WARN package.json @ No description
npm WARN package.json @ No repository field.
npm WARN package.json @ No README data
npm WARN optional dep failed, continuing fsevents@0.3.1
> ws@0.4.32 install /tmp/test/node_modules/karma/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)
18964:C 02 Jan 14:57:54.013 * supervised by upstart, will stop to signal readyness
18964:M 02 Jan 14:57:54.025 # You requested maxclients of 10000 requiring at least 10032 max file descriptors.
18964:M 02 Jan 14:57:54.026 # Redis can't set maximum open files to 10032 because of OS error: Operation not permitted.
18964:M 02 Jan 14:57:54.026 # Current maximum open files is 4096. maxclients has been reduced to 4064 to compensate for low ulimit. If you need higher maxclients increase 'ulimit -n'.
18964:M 02 Jan 14:57:54.039 * No cluster configuration found, I'm a69a87365c687cdb324f33ce475739076c85ca56
_._
_.-``__ ''-._
_.-`` `. `_. ''-._ Redis 2.9.999 (5f2198b3/0) 64 bit
.-`` .-```. ```\/ _.,_ ''-._
( ' , .-` | `, ) Running in cluster mode
#!/bin/bash
if [ "$1" = "-h" ] || [ "$1" = "--help" ] || [ "$1" == "help" ]; then
echo "Usage: $0 [requests] [keyspacelen]"
echo
echo "requests - Total number of requests (default 1000000)"
echo "keyspacelen - Keyspace from which a random number will be chosen"
echo " (default 9999999)"
echo
echo "Wrapper around redis-benchmark to quickly fill a Redis instance with random data."
*** mutt-1.5.23-orig/buffy.c 2014-03-12 11:03:44.000000000 -0500
--- mutt-1.5.23/buffy.c 2014-04-12 15:33:54.000000000 -0500
***************
*** 161,166 ****
--- 161,209 ----
}
}
+ static int buffy_compare_name(const void *a, const void *b) {
+ const BUFFY *b1 = * (BUFFY * const *) a;
20874:M 19 Jan 20:34:59.120 # You requested maxclients of 10000 requiring at least 10032 max file descriptors.
20874:M 19 Jan 20:34:59.120 # Redis can't set maximum open files to 10032 because of OS error: Operation not permitted.
20874:M 19 Jan 20:34:59.120 # Current maximum open files is 4096. maxclients has been reduced to 4064 to compensate for low ulimit. If you need higher maxclients increase 'ulimit -n'.
_._
_.-``__ ''-._
_.-`` `. `_. ''-._ Redis 2.9.999 (cf76af6b/0) 64 bit
.-`` .-```. ```\/ _.,_ ''-._
( ' , .-` | `, ) Running in standalone mode
|`-._`-...-` __...-.``-._|'` _.-'| Port: 6379
| `-._ `._ / _.-' | PID: 20874