~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/pbms/src/cslib/CSLog.cc

  • Committer: Stewart Smith
  • Date: 2010-11-07 04:22:31 UTC
  • mto: (1911.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1912.
  • Revision ID: stewart@flamingspork.com-20101107042231-ola4sl7j0qvg58tz
fix ARCHIVE storage engine calling exit (lintian warning). Was because we were linking in libinternal into libazio, which links into archive plugin. Just link libinternal into the command line utilities.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (C) 2008 PrimeBase Technologies GmbH, Germany
 
1
/* Copyright (c) 2008 PrimeBase Technologies GmbH, Germany
2
2
 *
3
3
 * PrimeBase Media Stream for MySQL
4
4
 *
107
107
{
108
108
        const char      *end_ptr;
109
109
        size_t          len;
110
 
        size_t ret;
111
110
 
112
111
        if (level > iLogLevel)
113
112
                return;
121
120
                /* Write until the next \n... */
122
121
                if ((end_ptr = strchr((char*)buffer, '\n'))) {
123
122
                        len = end_ptr - buffer;
124
 
                        ret= fwrite(buffer, len, 1, iStream);
 
123
                        fwrite(buffer, len, 1, iStream);
125
124
                        fprintf(iStream, "\n");
126
125
                        fflush(iStream);
127
126
                        iHeaderPending = true;
129
128
                }
130
129
                else {
131
130
                        len = strlen(buffer);
132
 
                        ret = fwrite(buffer, len, 1, iStream);
133
 
 
 
131
                        fwrite(buffer, len, 1, iStream);
134
132
                }
135
133
                buffer += len;
136
134
        }
137
135
        unlock();
138
 
        (void)ret;
139
136
}
140
137
 
141
138
void CSLog::log(CSThread *self, int level, const char *buffer)