Ignore:
Timestamp:
Mar 29, 2018, 12:23:23 AM (7 years ago)
Author:
bird
Message:

winchildren: Workaround for out of sync dir cache (temporary, right).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/dir-nt-bird.c

    r3192 r3203  
    7777PKFSCACHE   g_pFsCache = NULL;
    7878/** Number of times dir_cache_invalid_missing was called. */
    79 static KU32 g_cInvalidates = 0;
     79static KU32 volatile g_cInvalidates = 0;
    8080/** Set by dir_cache_volatile_dir to indicate that the user has marked the
    8181 * volatile parts of the file system with custom revisioning and we only need to
     
    651651 *
    652652 * Used by $(dircache-ctl invalidate)
     653 * @note    Multi-thread safe.
    653654 */
    654655void dir_cache_invalid_all(void)
    655656{
    656     assert(GetCurrentThreadId() == g_idMainThread);
    657657    g_cInvalidates++;
    658658    kFsCacheInvalidateAll(g_pFsCache);
     
    663663 *
    664664 * Used by $(dircache-ctl invalidate-missing)
     665 * @note    Multi-thread safe.
    665666 */
    666667void dir_cache_invalid_missing(void)
    667668{
    668     assert(GetCurrentThreadId() == g_idMainThread);
    669669    g_cInvalidates++;
    670670    kFsCacheInvalidateAll(g_pFsCache);
     
    675675 *
    676676 * Used by $(dircache-ctl invalidate-missing)
     677 * @note    Multi-thread safe.
    677678 */
    678679void dir_cache_invalid_volatile(void)
    679680{
    680     assert(GetCurrentThreadId() == g_idMainThread);
    681681    g_cInvalidates++;
    682682    if (g_fFsCacheIsUsingCustomRevision)
Note: See TracChangeset for help on using the changeset viewer.