lib/sdbport/domain/purge.rb in sdbport-0.1.0 vs lib/sdbport/domain/purge.rb in sdbport-0.1.1
- old
+ new
@@ -10,10 +10,10 @@
@region = args[:region]
end
def purge
@logger.info "Purging #{@name} in #{@region}."
- data = sdb.select "select * from `#{@name}`"
+ data = sdb.select_and_follow_tokens "select * from `#{@name}`"
data.keys.each do |key|
@logger.debug "Deleting #{key}."
sdb.delete @name, key
end
end