Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
e1938730
Commit
e1938730
authored
Aug 24, 2010
by
antirez
Browse files
changed the comments on top of redis-copy.rb to reflect what the program really does
parent
c91abdcd
Changes
1
Show whitespace changes
Inline
Side-by-side
utils/redis-copy.rb
View file @
e1938730
# redis-
sha1
.rb - Copyright (C) 2009 Salvatore Sanfilippo
# redis-
copy
.rb - Copyright (C) 2009
-2010
Salvatore Sanfilippo
# BSD license, See the COPYING file for more information.
# BSD license, See the COPYING file for more information.
#
#
# Performs the SHA1 sum of the whole datset.
# Copy the whole dataset from one Redis instance to another one
# This is useful to spot bugs in persistence related code and to make sure
# Slaves and Masters are in SYNC.
#
#
#
If you hack this code make sure to sort keys and set elements as this are
#
WARNING: currently hashes and sorted sets are not supported! This
#
unsorted elements. Otherwise the sum may differ with equal dataset
.
#
program should be updated
.
require
'rubygems'
require
'rubygems'
require
'redis'
require
'redis'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment