From 348648a2a597d9383bfa989e1b8dc16bd830f34c Mon Sep 17 00:00:00 2001 From: martinlanghoff Date: Wed, 19 Sep 2007 07:55:59 +0000 Subject: [PATCH] Revert "accesslib: mark_context_dirty() - fix race condition" This reverts commit 2b65045c5e8259f5997b3bbf457ec9d05027a93c. --- lib/accesslib.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/accesslib.php b/lib/accesslib.php index a7b3aeaa2a..26a12c8f1b 100755 --- a/lib/accesslib.php +++ b/lib/accesslib.php @@ -4582,10 +4582,7 @@ function mark_context_dirty($path) { // only if it is a non-empty string if (is_string($path) && $path !== '') { - // The timestamp is 2s in the past to cover for - // - race conditions within the 1s granularity - // - very small clock offsets in clusters (use ntpd!) - set_config($path, time()-2, 'accesslib/dirtycontexts'); + set_config($path, time(), 'accesslib/dirtycontexts'); } } -- 2.39.5