Don't let new file references be blown away if a collection happens too soon
authorDick Porter <dick@acm.org>
Mon, 14 Mar 2005 15:47:08 +0000 (15:47 -0000)
committerDick Porter <dick@acm.org>
Mon, 14 Mar 2005 15:47:08 +0000 (15:47 -0000)
svn path=/branches/dick/io-layer-no-daemon/; revision=41798

mono/io-layer/handles.c

index 0f7a234063bac99280b2e733334a7526f47f8677..2c30611d91bae6f8205f9b8fe47ae6929afe9133 100644 (file)
@@ -1584,6 +1584,10 @@ gboolean _wapi_handle_get_or_set_share (dev_t device, ino_t inode,
                        *share_info = file_share;
                }
        }
+
+       if (*share_info != NULL) {
+               InterlockedExchange (&(*share_info)->timestamp, now);
+       }
        
        thr_ret = _wapi_timestamp_release (&_wapi_fileshare_layout->share_check, now);