Added pessimistic locking in several places to shut down deadlocks.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3252 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Britt Park
2006-06-26 16:43:35 +00:00
parent 64288d531d
commit c6dfeb1c9d
10 changed files with 72 additions and 31 deletions

View File

@@ -32,8 +32,8 @@ public class SimultaneousLoadTest extends AVMServiceTestBase
{
try
{
int n = 8;
int m = 1;
int n = 1;
int m = 8;
for (int i = 0; i < n; i++)
{
fService.createDirectory("main:/", "d" + i);
@@ -42,7 +42,7 @@ public class SimultaneousLoadTest extends AVMServiceTestBase
Thread [] threads = new Thread[n];
for (int i = 0; i < n; i++)
{
Loader loader = new Loader("/Users/britt/stuff/" + i, "main:/d" + i, m);
Loader loader = new Loader("source", "main:/d" + i, m);
threads[i] = new Thread(loader);
threads[i].start();
}