This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
// ---->>>> POWERPC commented out - see below the implementation of rdtscp(), _mm_clflush() replaced by a 'dcbf' | |
//#ifdef _MSC_VER | |
//#include <intrin.h> /* for rdtscp and clflush */ | |
//#pragma optimize("gt",on) | |
//#else | |
//#include <x86intrin.h> /* for rdtscp and clflush */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
The MIT License (MIT) | |
Copyright (c) 2014 Evandro Luiz Hauenstein | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Coded by Sumo (2014) | |
// | |
class RedirectAccessControl extends AccessControl; | |
event PreLogin | |
( | |
string Options, | |
string Address, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
linux:~/cluster # redis-cli -p 7000 -h 192.168.0.68 -c cluster nodes | sort -k2 | |
03f350baf80b0a8198f8d07af766349970a7779b 192.168.0.68:7001 slave 8f5fd34ed2d717236edcb25d3c253c16933556a3 0 1398182588334 4 connected | |
ff9b59994449e7b463b5aaf8fa05e292d4ac09c7 192.168.0.68:7002 slave 0d451781d1fc8e2f6a97ba27b69397dd790a291d 0 1398182588035 8 connected | |
0d451781d1fc8e2f6a97ba27b69397dd790a291d 192.168.0.69:7000 master - 0 1398182588035 8 connected 0-16381 | |
fa2584f59dd4f33cb0abe9ffbff5d14e995473f0 192.168.0.69:7001 slave 6c10bbcafd50b6088d0a9abc097503d152fd6f64 0 1398182588235 7 connected | |
9a70bcae166af8a6cbecfc71468ff07d24a14c6f 192.168.0.69:7002 slave 512e83ef121b50341e038c90c791f83470755572 0 1398182588236 6 connected | |
8f5fd34ed2d717236edcb25d3c253c16933556a3 192.168.0.70:7000 master - 0 1398182588435 4 connected 16382-16383 | |
45d61f103e79bb15e094678551b29cf48cab85eb 192.168.0.70:7001 slave 512e83ef121b50341e038c90c791f83470755572 0 1398182588335 6 connected | |
31a551da243442bbbe323bd35d9c55a06b3a5d5c 192.168.0.70:7002 sla |