~jlukas79/+junk/mysql-server

« back to all changes in this revision

Viewing changes to storage/myisam/mi_test3.c

manual merge 6.0-main --> 6.0-bka-review

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 
16
16
/* Test av locking */
17
17
 
18
 
#ifndef __NETWARE__
 
18
#if !(defined (__NETWARE_) || defined (_WIN32)) /*no fork() in Windows*/
19
19
 
20
20
#include "myisam.h"
21
21
#include <sys/types.h>
109
109
      sleep(1);
110
110
      return 0;
111
111
    }
112
 
    VOID(rnd(1));
 
112
    (void) rnd(1);
113
113
  }
114
114
 
115
115
  for (i=0 ; i < forks ; i++)
169
169
  MI_INFO *file,*file1,*file2=0,*lock;
170
170
 
171
171
  if (use_log)
172
 
    mi_log(1);
 
172
    mi_log(MI_LOG_ACTION_OPEN, MI_LOG_LOGICAL, NULL, NULL);
173
173
  if (!(file1=mi_open(filename,O_RDWR,HA_OPEN_WAIT_IF_LOCKED)) ||
174
174
      !(file2=mi_open(filename,O_RDWR,HA_OPEN_WAIT_IF_LOCKED)))
175
175
  {
214
214
  mi_close(file1);
215
215
  mi_close(file2);
216
216
  if (use_log)
217
 
    mi_log(0);
 
217
    mi_log(MI_LOG_ACTION_CLOSE_INCONSISTENT, MI_LOG_LOGICAL, NULL, NULL);
218
218
  if (error)
219
219
  {
220
220
    printf("%2d: Aborted\n",id); fflush(stdout);
488
488
  return 0;
489
489
}
490
490
 
491
 
#else /* __NETWARE__ */
 
491
#include "mi_extrafunc.h"
 
492
 
 
493
#else /* __NETWARE__ || __WIN__*/
492
494
 
493
495
#include <stdio.h>
494
496
 
495
 
main()
 
497
int main()
496
498
{
497
 
        fprintf(stderr,"this test has not been ported to NetWare\n");
 
499
        fprintf(stderr,"this test has not been ported to NetWare or Windows\n");
498
500
        return 0;
499
501
}
500
502
 
501
 
#endif /* __NETWARE__ */
 
503
#endif /* __NETWARE__ || __WIN__ */
502
504
 
503
 
#include "mi_extrafunc.h"