Merge branch 'master' into update_changelog

This commit is contained in:
Nick Elser
2018-10-05 16:31:49 -04:00
3 changed files with 6 additions and 9 deletions

View File

@@ -56,10 +56,7 @@ module Suo
retry_with_timeout do
val, cas = get
if val.nil?
initial_set
next
end
cas = initial_set if val.nil?
cleared_locks = deserialize_and_clear_locks(val)
@@ -102,10 +99,7 @@ module Suo
retry_with_timeout do
val, cas = get
if val.nil?
initial_set
next
end
cas = initial_set if val.nil?
cleared_locks = deserialize_and_clear_locks(val)

View File

@@ -26,6 +26,8 @@ module Suo
def initial_set(val = BLANK_STR)
@client.set(@key, val)
_val, cas = @client.get_cas(@key)
cas
end
end
end

View File

@@ -39,7 +39,8 @@ module Suo
end
def initial_set(val = BLANK_STR)
@client.set(@key, val)
set(val, nil)
nil
end
end
end