From: Michael Vrable Date: Wed, 13 Jun 2007 16:32:49 +0000 (-0700) Subject: Fix --localdb= option. X-Git-Url: http://git.vrable.net/?p=cumulus.git;a=commitdiff_plain;h=715efebee9dff8df72feda19e77ee516798444be Fix --localdb= option. --- diff --git a/scandir.cc b/scandir.cc index 3634b59..3d4dcb5 100644 --- a/scandir.cc +++ b/scandir.cc @@ -452,8 +452,8 @@ int main(int argc, char *argv[]) localdb_dir = backup_dest; } - printf("Source: %s, Dest: %s\n", - backup_source.c_str(), backup_dest.c_str()); + printf("Source: %s\nDest: %s\nDatabase: %s\n\n", + backup_source.c_str(), backup_dest.c_str(), localdb_dir.c_str()); tss = new TarSegmentStore(backup_dest); block_buf = new char[LBS_BLOCK_SIZE]; @@ -473,7 +473,7 @@ int main(int argc, char *argv[]) /* Open the local database which tracks all objects that are stored * remotely, for efficient incrementals. Provide it with the name of this * snapshot. */ - string database_path = backup_dest + "/localdb.sqlite"; + string database_path = localdb_dir + "/localdb.sqlite"; db = new LocalDb; db->Open(database_path.c_str(), desc_buf);