Show
Ignore:
Timestamp:
30/07/10 16:11:07 (19 months ago)
Author:
westram
Message:
  • added GB_key_2_existing_quark (like GB_key_2_quark, but returns 0 for non-existing quarks)
  • use GB_key_2_existing_quark in gb_delete_main_entry (avoid creating GB_SYSTEM_FOLDER after failed client connect). This fixes crash of arb_message when no server was running! (introduced in [6648])
  • gb_pre_delete_entry
    • if no remote_hash exists, do not erase anything from there
  • rewrote GB_key_2_quark() and gb_key_2_quark() using gb_key_2_existing_quark()
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/ARBDB/ad_load.cxx

    r6678 r6681  
    14641464    ASSERT_RESULT(long, gb_create_key(Main, "main", false), 0); 
    14651465 
    1466     Main->dummy_father            = gb_make_container(NULL, 0, -1, 0); // create "main" 
     1466    Main->dummy_father            = gb_make_container(NULL, NULL, -1, 0); // create "main" 
    14671467    Main->dummy_father->main_idx  = gb_make_main_idx(Main); 
    14681468    Main->dummy_father->server_id = GBTUM_MAGIC_NUMBER; 
    1469     gbd                           = gb_make_container(Main->dummy_father, 0, -1, 0); // create "main" 
     1469    gbd                           = gb_make_container(Main->dummy_father, NULL, -1, 0); // create "main" 
    14701470 
    14711471    Main->data = gbd;