inn.patch 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. Index: frontends/ovdb_stat.c
  2. --- frontends/ovdb_stat.c.orig 2006-03-20 05:14:57 +0100
  3. +++ frontends/ovdb_stat.c 2007-09-27 00:01:57 +0200
  4. @@ -266,13 +266,17 @@
  5. { INT32, F(st_nobjects), -1, -1, "Current objects" },
  6. { INT32, F(st_maxnobjects), -1, -1, "Maximum objects" },
  7. #endif
  8. +#if !(DB_VERSION_MAJOR >= 4 && DB_VERSION_MINOR >= 4)
  9. { INT32, F(st_nconflicts), -1, -1, "Lock conflicts" },
  10. +#endif
  11. { INT32, F(st_nrequests), -1, -1, "Lock requests" },
  12. { INT32, F(st_nreleases), -1, -1, "Lock releases" },
  13. { DIFF32, F(st_nrequests), F(st_nreleases), F(st_ndeadlocks), "Outstanding locks" },
  14. #if DB_VERSION_MAJOR >= 4 || (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 0)
  15. +#if !(DB_VERSION_MAJOR >= 4 && DB_VERSION_MINOR >= 4)
  16. { INT32, F(st_nnowaits), -1, -1, "Lock requests that would have waited" },
  17. #endif
  18. +#endif
  19. { INT32, F(st_ndeadlocks), -1, -1, "Deadlocks" },
  20. #if DB_VERSION_MAJOR >= 4
  21. { INT32, F(st_nlocktimeouts), -1, -1, "Lock timeouts" },
  22. Index: innfeed/endpoint.c
  23. --- innfeed/endpoint.c.orig 2006-03-20 05:14:57 +0100
  24. +++ innfeed/endpoint.c 2007-09-27 00:02:53 +0200
  25. @@ -1644,7 +1644,7 @@
  26. if (sigHandlers == NULL)
  27. {
  28. sigHandlers = xmalloc (sizeof(sigfn) * NSIG) ;
  29. - sigFlags = xmalloc (sizeof(int) * NSIG) ;
  30. + sigFlags = xmalloc (sizeof(sig_atomic_t) * NSIG) ;
  31. for (i = 0 ; i < NSIG ; i++)
  32. {
  33. sigHandlers [i] = NULL ;
  34. Index: scripts/innwatch.in
  35. --- scripts/innwatch.in.orig 2006-03-20 05:14:57 +0100
  36. +++ scripts/innwatch.in 2007-09-27 00:01:57 +0200
  37. @@ -126,7 +126,12 @@
  38. NEXTSLEEP=1
  39. HASEXITED=false
  40. -while { sleep ${NEXTSLEEP} & wait; } ; : ; do
  41. +SLEEPTINY=4
  42. +while { sleep ${SLEEPTINY} & wait; } ; : ; do
  43. + NEXTSLEEP=`expr ${NEXTSLEEP} - ${SLEEPTINY}`
  44. + if [ $NEXTSLEEP -gt 0 ]; then
  45. + continue;
  46. + fi
  47. NEXTSLEEP=${INNWATCHSLEEPTIME}
  48. ## If news.daily is running, idle: we don't want to change the
  49. Index: site/Makefile
  50. --- site/Makefile.orig 2006-03-20 05:14:57 +0100
  51. +++ site/Makefile 2007-09-27 00:01:57 +0200
  52. @@ -137,7 +137,6 @@
  53. chmod $(FILEMODE) $@
  54. $D$(PATH_HISTORY):
  55. touch $@
  56. - $(PATHBIN)/makedbz -i -o
  57. ## Remove files that are unchanged from the release version.
  58. clean:
  59. Index: storage/ovdb/ovdb.c
  60. --- storage/ovdb/ovdb.c.orig 2006-03-20 05:14:57 +0100
  61. +++ storage/ovdb/ovdb.c 2007-09-27 00:01:57 +0200
  62. @@ -1526,7 +1526,9 @@
  63. OVDBenv->set_errcall(OVDBenv, OVDBerror);
  64. OVDBenv->set_cachesize(OVDBenv, 0, ovdb_conf.cachesize, 1);
  65. +#if DB_VERSION_MAJOR < 4 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR < 5)
  66. OVDBenv->set_lk_max(OVDBenv, ovdb_conf.maxlocks);
  67. +#endif
  68. #if DB_VERSION_MAJOR >= 4 || (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR >= 2)
  69. if(ovdb_conf.txn_nosync)