Ignore:
Timestamp:
2008-05-22T11:26:01+12:00 (16 years ago)
Author:
mdewsnip
Message:

(Adding new DB support) Replaced a bunch of "gdbmhome" with "dbhome".

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/src/w32server/settings.cpp

    r11319 r15625  
    4747text_t gsdl_enterlib;
    4848text_t gsdl_gsdlhome;
    49 text_t gsdl_gdbmhome;
     49text_t gsdl_dbhome;
    5050text_t gsdl_collections;
    5151colinfo_tmap gsdl_collectinfo;
     
    300300    write_ini_line(fout, "enterlib", gsdl_enterlib);
    301301    write_ini_line(fout, "gsdlhome", gsdl_gsdlhome);
    302     write_ini_line(fout, "gdbmhome", gsdl_gdbmhome);
     302    write_ini_line(fout, "gdbmhome", gsdl_dbhome);
    303303   
    304304    write_ini_line(fout, "logfilename", gsdl_log_name);
     
    321321      if (!(*here).second.gsdl_gsdlhome.empty())
    322322    write_ini_line(fout, "gsdlhome", (*here).second.gsdl_gsdlhome);
    323       if (!(*here).second.gsdl_gdbmhome.empty())
    324     write_ini_line(fout, "gdbmhome", (*here).second.gsdl_gdbmhome);
     323      if (!(*here).second.gsdl_dbhome.empty())
     324    write_ini_line(fout, "gdbmhome", (*here).second.gsdl_dbhome);
    325325     
    326326      ++here;
     
    385385  gsdl_enterlib = "/gsdl";
    386386  gsdl_gsdlhome = data_location;
    387   gsdl_gdbmhome = data_location;
     387  gsdl_dbhome = data_location;
    388388 
    389389  // debug settings
     
    475475        gsdl_collections = value;
    476476
    477       // gsdlhome must occur in file before gdbmhome       
     477      // gsdlhome must occur in file before dbhome     
    478478      } else if (key == "gsdlhome") {
    479479        gsdl_gsdlhome = value;
    480         gsdl_gdbmhome = value;
     480        gsdl_dbhome = value;
    481481     
    482482      } else if (key == "gdbmhome") {
    483         gsdl_gdbmhome = value;
     483        gsdl_dbhome = value;
    484484      }
    485485    } else {
    486486     
    487       // gsdlhome must occur in file before gdbmhome
     487      // gsdlhome must occur in file before dbhome
    488488      if (key == "gsdlhome") {
    489489        gsdl_collectinfo[section].gsdl_gsdlhome = value;
    490         gsdl_collectinfo[section].gsdl_gdbmhome = value;
     490        gsdl_collectinfo[section].gsdl_dbhome = value;
    491491      } else if (key == "gdbmhome") {
    492         gsdl_collectinfo[section].gsdl_gdbmhome = value;
     492        gsdl_collectinfo[section].gsdl_dbhome = value;
    493493      }
    494494    }
     
    502502  // extra slashes at the end
    503503  remove_end_slashes (gsdl_gsdlhome);
    504   remove_end_slashes (gsdl_gdbmhome);
     504  remove_end_slashes (gsdl_dbhome);
    505505  colinfo_tmap::iterator here = gsdl_collectinfo.begin();
    506506  colinfo_tmap::iterator end = gsdl_collectinfo.end();
    507507  while (here != end) {
    508508    remove_end_slashes ((*here).second.gsdl_gsdlhome);
    509     remove_end_slashes ((*here).second.gsdl_gdbmhome);
     509    remove_end_slashes ((*here).second.gsdl_dbhome);
    510510    ++here;
    511511  }
Note: See TracChangeset for help on using the changeset viewer.