Module: sems Branch: master Commit: bf08296fb95005f23fb65d2a3642d5dfe0111e59 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=bf08296fb95005f23fb65d2a3642d5dfe0111e59
Author: Stefan Sayer <[email protected]> Committer: Stefan Sayer <[email protected]> Date: Thu Aug 11 16:44:21 2011 +0200 b/f: fix index search for search from the past --- apps/db_reg_agent/RegistrationTimer.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/apps/db_reg_agent/RegistrationTimer.cpp b/apps/db_reg_agent/RegistrationTimer.cpp index 9371e27..997c015 100644 --- a/apps/db_reg_agent/RegistrationTimer.cpp +++ b/apps/db_reg_agent/RegistrationTimer.cpp @@ -237,13 +237,13 @@ bool RegistrationTimer::insert_timer_leastloaded(RegTimer* timer, return false; } - int res_index = from_index; if (from_index < 0) { // use now .. to_index DBG("from_time (%ld) in the past - searching load loaded from now()\n", from_time); from_index = current_bucket; } // find least loaded bucket + int res_index = from_index; size_t least_load = buckets[from_index].timers.size(); int i = from_index; _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
