dovecot-2.1: director: Never set user's timestamp higher than ou...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Apr 19 22:17:45 EEST 2012
details: http://hg.dovecot.org/dovecot-2.1/rev/9104a9074a5a
changeset: 14433:9104a9074a5a
user: Timo Sirainen <tss at iki.fi>
date: Thu Apr 19 22:17:34 2012 +0300
description:
director: Never set user's timestamp higher than our ioloop_time.
diffstat:
src/director/user-directory.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (20 lines):
diff -r 0b4295b48941 -r 9104a9074a5a src/director/user-directory.c
--- a/src/director/user-directory.c Thu Apr 19 21:51:48 2012 +0300
+++ b/src/director/user-directory.c Thu Apr 19 22:17:34 2012 +0300
@@ -132,11 +132,12 @@
struct user *user;
if (timestamp == (time_t)-1) {
- /* make sure we add it at the end */
+ /* add it at the end */
timestamp = ioloop_time;
- if (dir->tail != NULL &&
- timestamp < (time_t)dir->tail->timestamp)
- timestamp = (time_t)dir->tail->timestamp;
+ } else {
+ /* make sure we don't add timestamps higher than ioloop time */
+ if (timestamp > ioloop_time)
+ timestamp = ioloop_time;
}
user = i_new(struct user, 1);
More information about the dovecot-cvs
mailing list