]> git.mjollnir.org Git - moodle.git/commitdiff
Revert "accesslib: mark_context_dirty() - fix race condition"
authormartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:55:59 +0000 (07:55 +0000)
committermartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:55:59 +0000 (07:55 +0000)
This reverts commit 2b65045c5e8259f5997b3bbf457ec9d05027a93c.

lib/accesslib.php

index a7b3aeaa2ad69843046363be0999ee03c60b8b93..26a12c8f1beb44490816478929210c7513d4dbf3 100755 (executable)
@@ -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');
     }
 }