Only try to store a full snapshot if we are in a global archive
2001-07-12 Bradford Hovinen <hovinen@ximian.com> * archive.c (archive_get_current_location_id): Only try to store a full snapshot if we are in a global archive * bonobo-config-archiver.c (bonobo_config_archiver_new): Store real_name in archiver_db (bonobo_config_archiver_destroy): Use archiver_db->real_name with bonobo_url_register
This commit is contained in:
parent
24c947b83c
commit
10e8b799a7
4 changed files with 21 additions and 5 deletions
|
@ -522,7 +522,9 @@ archive_get_current_location_id (Archive *archive)
|
|||
(location_new (archive,
|
||||
archive->current_location_id,
|
||||
NULL));
|
||||
if (location_store_full_snapshot (loc) < 0) {
|
||||
if (!archive->is_global ||
|
||||
location_store_full_snapshot (loc) < 0)
|
||||
{
|
||||
location_delete (loc);
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue