~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/transaction_log/transaction_log_reader.cc

  • Committer: Monty Taylor
  • Date: 2010-08-21 00:40:40 UTC
  • mfrom: (1723.1.11 build)
  • Revision ID: mordred@inaugust.com-20100821004040-udj7wpfxtj0rgak1
Rollup of small patches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
91
91
 
92
92
    if (log_file == -1)
93
93
    {
 
94
      char errmsg[STRERROR_MAX];
 
95
      strerror_r(errno, errmsg, sizeof(errmsg));
94
96
      errmsg_printf(ERRMSG_LVL_ERROR, 
95
97
                    _("Failed to open transaction log file %s.  Got error: %s\n"),
96
98
                    log_filename_to_read.c_str(),
97
 
                    strerror(errno));
 
99
                    errmsg);
98
100
      return false;
99
101
    }
100
102
 
145
147
      result= coded_input->ReadRaw(buffer, length);
146
148
      if (result == false)
147
149
      {
 
150
        char errmsg[STRERROR_MAX];
 
151
        strerror_r(errno, errmsg, sizeof(errmsg));
148
152
        fprintf(stderr, _("Could not read transaction message.\n"));
149
 
        fprintf(stderr, _("GPB ERROR: %s.\n"), strerror(errno));
 
153
        fprintf(stderr, _("GPB ERROR: %s.\n"), errmsg);
150
154
        fprintf(stderr, _("Raw buffer read: %s.\n"), buffer);
151
155
        break;
152
156
      }