[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
Revision: 932
Author: gradator
Date: 2007-09-20 21:24:50 +0000 (Thu, 20 Sep 2007)
Log Message:
-----------
Oops..
Modified Paths:
--------------
trunk/vhffs-fs/vhffsfs.c
Modified: trunk/vhffs-fs/vhffsfs.c
===================================================================
--- trunk/vhffs-fs/vhffsfs.c 2007-09-20 21:18:20 UTC (rev 931)
+++ trunk/vhffs-fs/vhffsfs.c 2007-09-20 21:24:50 UTC (rev 932)
@@ -224,7 +224,7 @@
GPtrArray *keys;
int i;
- //sleep(VHFFSFS_CACHE_QUERY_FLUSH_EVERY);
+ sleep(VHFFSFS_CACHE_QUERY_FLUSH_EVERY);
keys = g_ptr_array_sized_new(4096);
@@ -238,7 +238,7 @@
vhffsfs_cache_unlock();
// sleep a bit to not lock the cache too much
- //sleep(1);
+ sleep(1);
for(i = 0 ; i < keys->len ; i++) {
char *query = keys->pdata[i];
@@ -257,7 +257,7 @@
free(query);
//sleep a bit to not lock the cache too much
- //usleep(100000);
+ usleep(100000);
}
g_ptr_array_free(keys, TRUE);
- Messages sorted by: [ date | thread ]
- Prev by Date:
[vhffs-dev] [931] fix a small cache "corruption" which can happen if a query fail
- Next by Date:
[vhffs-dev] [933] well, if 2 threads do a cache miss, they both send the query to the db server (everything is right here), then the both try to add the query in the cache, the first success, the second failed but it is not aware about that.
- Previous by thread:
[vhffs-dev] [931] fix a small cache "corruption" which can happen if a query fail
- Next by thread:
[vhffs-dev] [933] well, if 2 threads do a cache miss, they both send the query to the db server (everything is right here), then the both try to add the query in the cache, the first success, the second failed but it is not aware about that.