Commit b7589ac3 authored by Yoni Fogel's avatar Yoni Fogel

Addresses #2124 refs[t:2124] Windows port of 'crash on diskfull'

git-svn-id: file:///svn/toku/tokudb.2037b@15678 c7de825b-a66e-492c-adef-691d508d4ae1
parent e13b90e2
......@@ -55,7 +55,7 @@ pwrite(int fildes, const void *buf, size_t nbyte, int64_t offset) {
if (errno == ERROR_HANDLE_DISK_FULL ||
errno == ERROR_DISK_FULL) {
char err_msg[sizeof("Failed write of [] bytes to fd=[].") + 20+10]; //64 bit is 20 chars, 32 bit is 10 chars
snprintf(err_msg, sizeof(err_msg), "Failed write of [%"PRIu64"] bytes to fd=[%d].", len, fd);
snprintf(err_msg, sizeof(err_msg), "Failed write of [%"PRIu64"] bytes to fd=[%d].", nbyte, fildes);
perror(err_msg);
fflush(stdout);
int out_of_disk_space = 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment