projects
/
cumulus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
58a0d3f
)
Fix --localdb= option.
author
Michael Vrable
<mvrable@cs.ucsd.edu>
Wed, 13 Jun 2007 16:32:49 +0000
(09:32 -0700)
committer
Michael Vrable
<mvrable@turin.ucsd.edu>
Wed, 13 Jun 2007 16:32:49 +0000
(09:32 -0700)
scandir.cc
patch
|
blob
|
history
diff --git
a/scandir.cc
b/scandir.cc
index
3634b59
..
3d4dcb5
100644
(file)
--- a/
scandir.cc
+++ b/
scandir.cc
@@
-452,8
+452,8
@@
int main(int argc, char *argv[])
localdb_dir = backup_dest;
}
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];
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. */
/* 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);
db = new LocalDb;
db->Open(database_path.c_str(), desc_buf);