Skip to content

Commit 59afcf4

Browse files
authored
RCBC-482: Only expand MutateIn macros when the relevant symbols are used as values (#141)
1 parent 2091b95 commit 59afcf4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/couchbase/subdoc.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,8 @@ def initialize(type, path, param)
272272
else
273273
param
274274
end
275-
@expand_macros = [CAS, SEQ_NO, VALUE_CRC32C].include?(@param)
275+
# Only set expand_macros when a the value is a symbol that matches one of the macros
276+
@expand_macros = [:cas, :seq_no, :sequence_number, :value_crc, :value_crc32c].include?(param)
276277
@xattr = true if @expand_macros
277278
return if @param.nil?
278279

0 commit comments

Comments
 (0)