projects
/
cumulus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add timestamps to block when they are inserted into the local database.
[cumulus.git]
/
localdb.cc
diff --git
a/localdb.cc
b/localdb.cc
index
27fec5a
..
9bd33d9
100644
(file)
--- a/
localdb.cc
+++ b/
localdb.cc
@@
-59,8
+59,8
@@
void LocalDb::StoreObject(const ObjectReference& ref,
int rc;
sqlite3_stmt *stmt;
static const char s[] =
int rc;
sqlite3_stmt *stmt;
static const char s[] =
- "insert into block_index(segment, object, checksum, size) "
- "values (?, ?, ?, ?)";
+ "insert into block_index(segment, object, checksum, size
, timestamp
) "
+ "values (?, ?, ?, ?
, julianday('now')
)";
const char *tail;
rc = sqlite3_prepare_v2(db, s, strlen(s), &stmt, &tail);
const char *tail;
rc = sqlite3_prepare_v2(db, s, strlen(s), &stmt, &tail);