Repository: trafficserver Updated Branches: refs/heads/master fd7b3ebe9 -> 76c0d06c7
[TS-3973] convert the rww delay timer to correct units Patch from Shinya Kawano (git --author didn't recognize the author) Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/76c0d06c Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/76c0d06c Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/76c0d06c Branch: refs/heads/master Commit: 76c0d06c7a3599a4d09450ed98346a4dea424705 Parents: fd7b3eb Author: Sudheer Vinukonda <[email protected]> Authored: Wed Oct 21 21:49:28 2015 +0000 Committer: Sudheer Vinukonda <[email protected]> Committed: Wed Oct 21 21:49:28 2015 +0000 ---------------------------------------------------------------------- iocore/cache/P_CacheInternal.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/76c0d06c/iocore/cache/P_CacheInternal.h ---------------------------------------------------------------------- diff --git a/iocore/cache/P_CacheInternal.h b/iocore/cache/P_CacheInternal.h index b3858d2..b5a8548 100644 --- a/iocore/cache/P_CacheInternal.h +++ b/iocore/cache/P_CacheInternal.h @@ -91,15 +91,15 @@ struct EvacuationBlock; #define CONT_SCHED_LOCK_RETRY(_c) _c->mutex->thread_holding->schedule_in_local(_c, HRTIME_MSECONDS(cache_config_mutex_retry_delay)) -#define VC_SCHED_WRITER_RETRY() \ - do { \ - ink_assert(!trigger); \ - writer_lock_retry++; \ - ink_hrtime _t = cache_read_while_writer_retry_delay; \ - if (writer_lock_retry > 2) \ - _t = cache_read_while_writer_retry_delay * 2; \ - trigger = mutex->thread_holding->schedule_in_local(this, _t); \ - return EVENT_CONT; \ +#define VC_SCHED_WRITER_RETRY() \ + do { \ + ink_assert(!trigger); \ + writer_lock_retry++; \ + ink_hrtime _t = HRTIME_MSECONDS(cache_read_while_writer_retry_delay); \ + if (writer_lock_retry > 2) \ + _t = HRTIME_MSECONDS(cache_read_while_writer_retry_delay) * 2; \ + trigger = mutex->thread_holding->schedule_in_local(this, _t); \ + return EVENT_CONT; \ } while (0)
