Skip to content
  1. Feb 02, 2024
  2. Mar 10, 2023
  3. Aug 30, 2021
  4. Apr 06, 2021
  5. Nov 27, 2020
  6. Nov 12, 2020
  7. Nov 10, 2020
  8. Dec 03, 2019
  9. Jul 12, 2019
  10. Sep 05, 2017
  11. Aug 24, 2017
  12. Jul 20, 2017
  13. Jul 13, 2017
  14. Jul 07, 2017
  15. Sep 15, 2016
  16. Aug 08, 2016
  17. Jun 03, 2015
  18. May 20, 2015
  19. May 07, 2015
  20. May 04, 2015
  21. Apr 22, 2015
  22. Apr 17, 2015
  23. Apr 16, 2015
    • anarcat's avatar
      fix comment typo · b4bace58
      anarcat authored
      b4bace58
    • anarcat's avatar
      handle mysqldump errors again · 79092eee
      anarcat authored
      we rewrite the dump code completely, stealing bits from
      safe_shell_exec() for the DB credentials, to directly do the search
      and replace of certain patterns ourselves. this simplifies the
      pipeline and should also improve performance (because we avoid forking
      sed twice), unless some memory leaks exist in PHP (which is quite
      possible). we process the dump one line at a time so memory usage
      shouldn't be higher.
      
      the previous code would not catch errors from mysqldump because the
      "sed" pipeline would succeed and therefore hide error from earlier in
      the pipeline. we would need "set -o pipefail" in bash to workaround
      this issue, but that is not portable and, let's be honest, there
      already enough crap here as it is to warrant a cleanup.
      
      previous attempt at fixing this issue (#2098289) are sometimes
      unsuccesful because some dumps fail later than 1024 bytes. we still
      keep that check just in case.
      
      the bug (#1324466) was introduced in 571b63de, present since the 1.1
      release.
      
      this should be refactored to make safe_shell_exec() allow for a hook
      to modify the dumpfile inline, but for now i just wanted to port a
      working prototype in place.
      79092eee
  24. Dec 27, 2014
  25. Dec 18, 2014
  26. Oct 15, 2014
  27. Dec 16, 2013
  28. Sep 28, 2013
  29. Aug 02, 2013
  30. Jul 08, 2013