Kouhei Sutou
null+****@clear*****
Fri Nov 7 16:08:04 JST 2014
Kouhei Sutou 2014-11-07 16:08:04 +0900 (Fri, 07 Nov 2014) New Revision: d8a065aa07b1db4fbe9440702a1a33f7eb52e65e https://github.com/groonga/groonga/commit/d8a065aa07b1db4fbe9440702a1a33f7eb52e65e Message: Remove needless O_TRUNC flag Because mkostemp() always create a new file. Suggested by Jun Kuriyama. Thanks!!! Modified files: lib/ii.c Modified: lib/ii.c (+1 -1) =================================================================== --- lib/ii.c 2014-11-07 15:59:08 +0900 (98cbdac) +++ lib/ii.c 2014-11-07 16:08:04 +0900 (acc0493) @@ -7169,7 +7169,7 @@ grn_ii_buffer_open(grn_ctx *ctx, grn_ii *ii, if (ii_buffer->counters) { ii_buffer->block_buf = GRN_MALLOCN(grn_id, II_BUFFER_BLOCK_SIZE); if (ii_buffer->block_buf) { - int open_flags = O_WRONLY|O_CREAT|O_TRUNC; + int open_flags = O_WRONLY|O_CREAT; #ifdef WIN32 open_flags |= O_BINARY; #endif -------------- next part -------------- HTML����������������������������...下载