def next_id
      if @file_lock
        dbname = ODBA.storage.instance_variable_get('@dbi').dbi_args.first.split(/:/).last
        id = new_id(dbname, ODBA.storage)
      else
        id = ODBA.storage.next_id
      end
      @peers.each do |peer|
        peer.reserve_next_id id rescue DRb::DRbError
      end
      id
    rescue OdbaDuplicateIdError
      retry
    end
def next_id
      if @file_lock
        dbname = ODBA.storage.instance_variable_get('@dbi').dbi_args.first.split(/:/).last
        id = new_id(dbname, ODBA.storage)
      else
        id = ODBA.storage.next_id
      end
      @peers.each do |peer|
        peer.reserve_next_id id rescue DRb::DRbError
      end
      id
    rescue OdbaDuplicateIdError
      retry
    end
Returns the next valid odba_id