~percona-dev/percona-xtradb-cluster/galera-24.2.x

« back to all changes in this revision

Viewing changes to gcs/src/gcs_test.c

  • Committer: Raghavendra D Prabhu
  • Date: 2013-11-08 06:51:43 UTC
  • mfrom: (95.3.11 2.x)
  • Revision ID: raghavendra.prabhu@percona.com-20131108065143-o7o4yyy064112lzf
Merge galera upto revno 164

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * Copyright (C) 2008-2012 Codership Oy <info@codership.com>
3
3
 *
4
 
 * $Id: gcs_test.c 2923 2012-12-30 11:10:30Z alex $
 
4
 * $Id: gcs_test.c 3348 2013-11-02 10:56:57Z alex $
5
5
 */
6
6
/***********************************************************/
7
7
/*  This program imitates 3rd party application and        */
204
204
    if (!l) return errno;
205
205
 
206
206
    snprintf (real_name, 1024, "%s.%lld", name, (long long)getpid());
 
207
    // cppcheck-suppress memleak
207
208
    if (!(l->file = fopen (real_name, "w"))) return errno;
208
209
    pthread_mutex_init (&l->lock, NULL);
209
210
    *log = l;