~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/logging_query/logging_query.cc

  • Committer: Lee Bieber
  • Date: 2011-01-12 02:31:03 UTC
  • mfrom: (2068.7.5 session-fix)
  • mto: This revision was merged to the branch mainline in revision 2076.
  • Revision ID: kalebral@gmail.com-20110112023103-nmz26cv1j32jc6n3
Merge Brian - fix bug 527084 - DROP TABLE: getTableDefiniton returns EEXIST but doDropTable returns ENOENT leads to SIGSEGV

Show diffs side-by-side

added added

removed removed

Lines of Context:
171
171
    fd= open(_filename.c_str(),
172
172
             O_WRONLY | O_APPEND | O_CREAT,
173
173
             S_IRUSR|S_IWUSR);
174
 
 
175
174
    if (fd < 0)
176
175
    {
177
 
      sql_perror( _("fail open()"), _filename);
 
176
      char errmsg[STRERROR_MAX];
 
177
      strerror_r(errno, errmsg, sizeof(errmsg));
 
178
      errmsg_printf(ERRMSG_LVL_ERROR, _("fail open() fn=%s er=%s\n"),
 
179
                    _filename.c_str(),
 
180
                    errmsg);
178
181
      return;
179
182
    }
180
183
 
268
271
              % session->getQueryId()
269
272
              % dbs
270
273
              % qs
271
 
              % getCommandName(session->command)
 
274
              % command_name[session->command].str
272
275
              % (t_mark - session->getConnectMicroseconds())
273
276
              % session->getElapsedTime()
274
277
              % (t_mark - session->utime_after_lock)