changed the comments on top of redis-copy.rb to reflect what the program really does

This commit is contained in:
antirez 2010-08-24 10:10:01 +02:00
parent c91abdcd07
commit e193873025

View File

@ -1,12 +1,10 @@
# 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'