~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/internal/my_write.cc

  • Committer: Andrew Hutchings
  • Date: 2011-02-01 10:23:22 UTC
  • mto: (2136.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 2137.
  • Revision ID: andrew@linuxjedi.co.uk-20110201102322-oxztcyrjzg3c7yta
Fix counters cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
   along with this program; if not, write to the Free Software
14
14
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
15
15
 
16
 
#include <config.h>
 
16
#include "config.h"
17
17
 
18
 
#include <drizzled/internal/my_sys.h>
19
 
#include <drizzled/internal/thread_var.h>
20
 
#include <drizzled/error.h>
 
18
#include "drizzled/internal/my_sys.h"
 
19
#include "drizzled/internal/thread_var.h"
 
20
#include "drizzled/error.h"
21
21
#include <cerrno>
22
22
 
23
23
namespace drizzled
30
30
size_t my_write(int Filedes, const unsigned char *Buffer, size_t Count, myf MyFlags)
31
31
{
32
32
  size_t writenbytes, written;
33
 
  written=0;
 
33
  uint32_t errors;
 
34
  errors=0; written=0;
34
35
 
35
36
  /* The behavior of write(fd, buf, 0) is not portable */
36
37
  if (unlikely(!Count))