Class: ShardRange

Inherits:
CouchRest::ExtendedDocument
  • Object
show all
Defined in:
lib/adhd/models/shard_range.rb

Instance Method Summary collapse

Instance Method Details

#get_nodesObject



194
195
196
197
198
199
200
# File 'lib/adhd/models/shard_range.rb', line 194

def get_nodes
  # Return all nodes, with the master being first
  all_nodes = node_list.clone
  all_nodes.delete(master_node)
  all_nodes = [master_node] + all_nodes
  all_nodes
end