File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 55static git_repository * g_repo ;
66static int g_expected = 0 ;
77
8+ #ifdef GIT_WIN32
9+ static bool concurrent_compress = false;
10+ #else
11+ static bool concurrent_compress = true;
12+ #endif
13+
814void test_threads_refdb__initialize (void )
915{
1016 g_repo = NULL ;
@@ -79,7 +85,7 @@ static void *create_refs(void *arg)
7985 } while (error == GIT_ELOCKED );
8086 cl_git_thread_pass (data , error );
8187
82- if (i == NREFS /2 ) {
88+ if (concurrent_compress && i == NREFS /2 ) {
8389 git_refdb * refdb ;
8490 cl_git_thread_pass (data , git_repository_refdb (& refdb , repo ));
8591 do {
@@ -125,7 +131,7 @@ static void *delete_refs(void *arg)
125131 git_reference_free (ref );
126132 }
127133
128- if (i == NREFS /2 ) {
134+ if (concurrent_compress && i == NREFS /2 ) {
129135 git_refdb * refdb ;
130136 cl_git_thread_pass (data , git_repository_refdb (& refdb , repo ));
131137 do {
You can’t perform that action at this time.
0 commit comments