1. 18 1月, 2020 3 次提交
    • E
      Deprecate and replace `#default_hash` and `#[]` · 2a53fe63
      eileencodes 提交于
      Database configurations are now objects almost everywhere, so we don't
      need to fake access to a hash with `#default_hash` or it's alias `#[]`.
      Applications should `configs_for` and pass `env_name` and `spec_name` to
      get the database config object. If you're looking for the default for
      the test environment you can pass `configs_for(env_name: "test", spec_name:
      "primary")`. Change test to developement to get the dev config, etc.
      
      `#default_hash` and `#[]` will be removed in 6.2.
      Co-authored-by: NJohn Crepezzi <john.crepezzi@gmail.com>
      2a53fe63
    • J
      Merge pull request #38254 from jhawthorn/filename_max_size · dd2798ca
      John Hawthorn 提交于
      Reduce FILENAME_MAX_SIZE to accomodate large PIDs
      dd2798ca
    • J
      Reduce FILENAME_MAX_SIZE to accomodate large PIDs · a98f330f
      John Hawthorn 提交于
      The max size here is designed around Ruby's Dir::Tmpname.create which
      creates temporary filenames in the format
      
          $TIMESTAMP-$PID-$RANDOM
      
      I believe the previous value of this field was based on the assumption
      that PIDs are 1-65535, which isn't necessarily the case on 64 bit Linux
      systems, which can be up to 2**22.
      
          $ uname -a
          Linux zergling 5.4.11-arch1-1 #1 SMP PREEMPT Sun, 12 Jan 2020 12:15:27 +0000 x86_64 GNU/Linux
          $ cat /proc/sys/kernel/pid_max
          4194304
      
      I've chosen a new value based on what I believe the largest possible
      tempname is:
      
          255 - "20200117-4194304-#{0x100000000.to_s(36)}.lock".length #=> 226
      a98f330f
  2. 17 1月, 2020 4 次提交
  3. 16 1月, 2020 7 次提交
  4. 15 1月, 2020 7 次提交
  5. 14 1月, 2020 15 次提交
  6. 12 1月, 2020 4 次提交