Changeset 6681 for trunk/ARBDB/ad_core.cxx
- Timestamp:
- 30/07/10 16:11:07 (19 months ago)
- Files:
-
- 1 modified
-
trunk/ARBDB/ad_core.cxx (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ARBDB/ad_core.cxx
r6664 r6681 459 459 */ 460 460 if (!Main->local_mode && gbd->server_id) { 461 GBS_write_numhash(Main->remote_hash, gbd->server_id, 0);461 if (Main->remote_hash) GBS_write_numhash(Main->remote_hash, gbd->server_id, 0); 462 462 } 463 463 … … 521 521 gb_assert(GB_TYPE(gb_main) == GB_DB); 522 522 523 GBQUARK sys_quark = GB_key_2_quark((GBDATA*)gb_main, GB_SYSTEM_FOLDER); 523 GBQUARK sys_quark = gb_key_2_existing_quark(GB_MAIN((GBDATA*)gb_main), GB_SYSTEM_FOLDER); 524 525 // Note: sys_quark may be 0 (happens when destroying client db which never established a connection). 526 // In this case no system folder/quark has been created (and we do no longer try to create it) 527 // Nothing will happen in pass 2 below. 524 528 525 529 for (int pass = 1; pass <= 2; pass++) {
