diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-01-01 21:12:17 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-01-01 21:12:17 +0000 |
commit | 64c442461b84953230d3dc4e78cb649db6c54abc (patch) | |
tree | 49ec875b32ce171aac2bbae1b5fcaad516a94cf6 /src/fs | |
parent | 0413c7690e087a0514447a87bc8118b2a244c902 (diff) | |
download | gnunet-64c442461b84953230d3dc4e78cb649db6c54abc.tar.gz gnunet-64c442461b84953230d3dc4e78cb649db6c54abc.zip |
changing scheduler priorities to revert to DEFAULT instead of inheriting parent-task priority unless something else is explicitly specified
Diffstat (limited to 'src/fs')
-rw-r--r-- | src/fs/fs_api.c | 3 | ||||
-rw-r--r-- | src/fs/gnunet-service-fs_cp.c | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/fs/fs_api.c b/src/fs/fs_api.c index 293638732..2b1e51031 100644 --- a/src/fs/fs_api.c +++ b/src/fs/fs_api.c | |||
@@ -1356,7 +1356,8 @@ deserialize_publish_file (void *cls, const char *filename) | |||
1356 | GNUNET_assert (GNUNET_SCHEDULER_NO_TASK == pc->upload_task); | 1356 | GNUNET_assert (GNUNET_SCHEDULER_NO_TASK == pc->upload_task); |
1357 | pc->upload_task = | 1357 | pc->upload_task = |
1358 | GNUNET_SCHEDULER_add_with_priority | 1358 | GNUNET_SCHEDULER_add_with_priority |
1359 | (GNUNET_SCHEDULER_PRIORITY_BACKGROUND, &GNUNET_FS_publish_main_, pc); | 1359 | (GNUNET_SCHEDULER_PRIORITY_BACKGROUND, |
1360 | &GNUNET_FS_publish_main_, pc); | ||
1360 | } | 1361 | } |
1361 | if (GNUNET_OK != GNUNET_BIO_read_close (rh, &emsg)) | 1362 | if (GNUNET_OK != GNUNET_BIO_read_close (rh, &emsg)) |
1362 | { | 1363 | { |
diff --git a/src/fs/gnunet-service-fs_cp.c b/src/fs/gnunet-service-fs_cp.c index 164e264c6..4711c09e6 100644 --- a/src/fs/gnunet-service-fs_cp.c +++ b/src/fs/gnunet-service-fs_cp.c | |||
@@ -1816,7 +1816,9 @@ cron_flush_trust (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
1816 | return; | 1816 | return; |
1817 | if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN)) | 1817 | if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN)) |
1818 | return; | 1818 | return; |
1819 | GNUNET_SCHEDULER_add_delayed (TRUST_FLUSH_FREQ, &cron_flush_trust, NULL); | 1819 | GNUNET_SCHEDULER_add_delayed_with_priority (TRUST_FLUSH_FREQ, |
1820 | GNUNET_SCHEDULER_PRIORITY_HIGH, | ||
1821 | &cron_flush_trust, NULL); | ||
1820 | } | 1822 | } |
1821 | 1823 | ||
1822 | 1824 | ||