Add a stat for blobs stored.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4133 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2023-01-18 22:52:54 +00:00
parent 3285d93576
commit 85a2bc3f0f
5 changed files with 20 additions and 2 deletions

View File

@ -455,9 +455,13 @@ bool tf_ssb_db_blob_store(tf_ssb_t* ssb, const uint8_t* blob, size_t size, char*
printf("prepare failed: %s\n", sqlite3_errmsg(db));
}
if (rows && !out_new)
if (rows)
{
printf("blob stored %s %zd => %d\n", id, size, result);
tf_ssb_notify_blob_stored(ssb, id);
if (!out_new)
{
printf("blob stored %s %zd => %d\n", id, size, result);
}
}
if (result && out_id)