Nope, do the thing from the right thread.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4354 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
parent
15ea62a546
commit
6fcebd7a08
@ -472,6 +472,10 @@ static void _tf_ssb_db_blob_store_after_work(uv_work_t* work, int status)
|
|||||||
blob_store_work_t* blob_work = work->data;
|
blob_store_work_t* blob_work = work->data;
|
||||||
tf_trace_t* trace = tf_ssb_get_trace(blob_work->ssb);
|
tf_trace_t* trace = tf_ssb_get_trace(blob_work->ssb);
|
||||||
tf_trace_begin(trace, "blob_store_after_work");
|
tf_trace_begin(trace, "blob_store_after_work");
|
||||||
|
if (status == 0 && *blob_work->id)
|
||||||
|
{
|
||||||
|
tf_ssb_notify_blob_stored(blob_work->ssb, blob_work->id);
|
||||||
|
}
|
||||||
if (status != 0)
|
if (status != 0)
|
||||||
{
|
{
|
||||||
tf_printf("tf_ssb_db_blob_store_async -> uv_queue_work failed asynchronously: %s\n", uv_strerror(status));
|
tf_printf("tf_ssb_db_blob_store_async -> uv_queue_work failed asynchronously: %s\n", uv_strerror(status));
|
||||||
@ -550,7 +554,6 @@ bool tf_ssb_db_blob_store(tf_ssb_t* ssb, const uint8_t* blob, size_t size, char*
|
|||||||
|
|
||||||
if (rows)
|
if (rows)
|
||||||
{
|
{
|
||||||
tf_ssb_notify_blob_stored(ssb, id);
|
|
||||||
if (!out_new)
|
if (!out_new)
|
||||||
{
|
{
|
||||||
tf_printf("blob stored %s %zd => %d\n", id, size, result);
|
tf_printf("blob stored %s %zd => %d\n", id, size, result);
|
||||||
|
Loading…
Reference in New Issue
Block a user