lib/aerospike/node/refresh/partitions.rb
# Return correct tokenizer depending on version
Return correct tokenizer depending on version
Return correct tokenizer depending on version
def tokenizer(node)
            conn = node.tend_connection
            if node.use_new_info?
              Aerospike.logger.info("Updating partitions for node #{node.name} using new protocol")
              PartitionTokenizerNew.new(conn)
            else
              Aerospike.logger.info("Updating partitions for node #{node.name} using old protocol")
              PartitionTokenizerOld.new(conn)
            end
          end
def tokenizer ( node ) conn = node . tend_connection if node . use_new_info? Aerospike . logger . info ( "Updating partitions for node #{node.name} using new protocol" ) PartitionTokenizerNew . new ( conn ) else Aerospike . logger . info ( "Updating partitions for node #{node.name} using old protocol" ) PartitionTokenizerOld . new ( conn ) end end
Return correct tokenizer depending on version
Return correct tokenizer depending on version
node