patch-options_cpp 1.4 KB

12345678910111213141516171819202122232425
  1. $OpenBSD: patch-options_cpp,v 1.2 2016/04/27 17:02:34 danj Exp $
  2. Set the default cache size to 100M
  3. --- options.cpp.orig Wed Mar 2 15:06:44 2016
  4. +++ options.cpp Wed Apr 27 14:53:15 2016
  5. @@ -98,7 +98,7 @@ namespace
  6. printf("\
  7. %s/default.style.\n", OSM2PGSQL_DATADIR);
  8. printf("%s", "\
  9. - -C|--cache Use up to this many MB for caching nodes (default: 800)\n\
  10. + -C|--cache Use up to this many MB for caching nodes (default: 100)\n\
  11. \n\
  12. Database options:\n\
  13. -d|--database The name of the PostgreSQL database to connect\n\
  14. @@ -261,7 +261,7 @@ std::string database_options_t::conninfo() const
  15. options_t::options_t():
  16. prefix("planet_osm"), scale(DEFAULT_SCALE), projection(reprojection::create_projection(PROJ_SPHERE_MERC)), append(false), slim(false),
  17. - cache(800), tblsmain_index(boost::none), tblsslim_index(boost::none), tblsmain_data(boost::none), tblsslim_data(boost::none), style(OSM2PGSQL_DATADIR "/default.style"),
  18. + cache(100), tblsmain_index(boost::none), tblsslim_index(boost::none), tblsmain_data(boost::none), tblsslim_data(boost::none), style(OSM2PGSQL_DATADIR "/default.style"),
  19. expire_tiles_zoom(-1), expire_tiles_zoom_min(-1), expire_tiles_filename("dirty_tiles"), hstore_mode(HSTORE_NONE), enable_hstore_index(false),
  20. enable_multi(false), hstore_columns(), keep_coastlines(false), parallel_indexing(true),
  21. #ifdef __amd64__