susumu.yata
null+****@clear*****
Tue May 14 10:55:03 JST 2013
susumu.yata 2013-05-14 10:55:03 +0900 (Tue, 14 May 2013) New Revision: 87426a427994151ecd10b4cf8fb6681318193e0c https://github.com/groonga/grnxx/commit/87426a427994151ecd10b4cf8fb6681318193e0c Message: Output file size to logger on failure. Modified files: lib/grnxx/storage/chunk-posix.cpp lib/grnxx/storage/chunk-windows.cpp Modified: lib/grnxx/storage/chunk-posix.cpp (+1 -0) =================================================================== --- lib/grnxx/storage/chunk-posix.cpp 2013-05-14 10:41:48 +0900 (334aaa0) +++ lib/grnxx/storage/chunk-posix.cpp 2013-05-14 10:55:03 +0900 (6c6a1f4) @@ -134,6 +134,7 @@ bool ChunkImpl::create_file_backed_chunk(File *file, int64_t offset, if (address_ == MAP_FAILED) { GRNXX_ERROR() << "failed to map file-backed chunk: " << "file_path = " << file->path() + << ", file_size = " << file_size << ", offset = " << offset << ", size = " << size << ", flags = " << flags << ": '::mmap' " << Error(errno); return false; Modified: lib/grnxx/storage/chunk-windows.cpp (+4 -2) =================================================================== --- lib/grnxx/storage/chunk-windows.cpp 2013-05-14 10:41:48 +0900 (8243659) +++ lib/grnxx/storage/chunk-windows.cpp 2013-05-14 10:55:03 +0900 (74d5c37) @@ -123,7 +123,8 @@ bool ChunkImpl::create_file_backed_chunk(File *file, int64_t offset, nullptr); if (!handle_) { GRNXX_ERROR() << "failed to create file mapping: " - << "file_path = " << file->path() << ", offset = " << offset + << "file_path = " << file->path() + << ", file_size = " << file_size << ", offset = " << offset << ", size = " << size << ", flags = " << flags << ": '::CreateFileMapping' " << Error(::GetLastError()); return false; @@ -134,7 +135,8 @@ bool ChunkImpl::create_file_backed_chunk(File *file, int64_t offset, static_cast<SIZE_T>(size)); if (!address_) { GRNXX_ERROR() << "failed to map chunk: " - << "file_path = " << file->path() << ", offset = " << offset + << "file_path = " << file->path() + << ", file_size = " << file_size << ", offset = " << offset << ", size = " << size << ", flags = " << flags << ": '::MapChunkOfFile' " << Error(::GetLastError()); return false; -------------- next part -------------- HTML����������������������������... ダウンロード