app/models/switchman/shard.rb
# takes an id local to this shard, and returns a global id
takes an id local to this shard, and returns a global id
takes an id local to this shard and returns a global id
def global_id_for(local_id)
      return nil unless local_id
      self.class.signed_id_operation(local_id) do |abs_id|
        abs_id + self.id * IDS_PER_SHARD
      end
    end
def global_id_for ( local_id ) return nil unless local_id self . class . signed_id_operation ( local_id ) do | abs_id | abs_id + self . id * IDS_PER_SHARD end end
takes an id local to this shard, and returns a global id
takes an id local to this shard and returns a global id
local_id
<not_specific>