summaryrefslogtreecommitdiff
path: root/utils/redis-sha1.rb
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2009-12-15 13:06:41 -0500
committerantirez <antirez@gmail.com>2009-12-15 13:06:41 -0500
commite96e4fbf159269075633f30063d254515aeb3a5f (patch)
treeb387cedb8b796fa3ae4ed594d1e02d0d9b5f4d0e /utils/redis-sha1.rb
parent71c2b467b01c93726fccc0a3521343c11c92167c (diff)
downloadredis-e96e4fbf159269075633f30063d254515aeb3a5f.tar.gz
Two important fixes to append only file: zero length values and expires. A pretty neat new test to check consistency of randomly build datasets against snapshotting and AOF.
Diffstat (limited to 'utils/redis-sha1.rb')
-rw-r--r--utils/redis-sha1.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/redis-sha1.rb b/utils/redis-sha1.rb
index a50f5610a..24498e25a 100644
--- a/utils/redis-sha1.rb
+++ b/utils/redis-sha1.rb
@@ -47,5 +47,6 @@ end
host = ARGV[0] || "127.0.0.1"
port = ARGV[1] || "6379"
-puts "Performing SHA1 of Redis server #{host} #{port}"
-p "Dataset SHA1: #{redisSha1(:host => host, :port => port.to_i)}"
+db = ARGV[2] || "0"
+puts "Performing SHA1 of Redis server #{host} #{port} DB: #{db}"
+p "Dataset SHA1: #{redisSha1(:host => host, :port => port.to_i, :db => db)}"