Skip to content

Commit

Permalink
ii: fix wrong max segment
Browse files Browse the repository at this point in the history
Redmine: fixes #2438

Reported by yoku0825. Thanks!!!
  • Loading branch information
kou committed Apr 11, 2014
1 parent 72c0cde commit a3c56a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ii.c
Expand Up @@ -3463,7 +3463,7 @@ _grn_ii_create(grn_ctx *ctx, grn_ii *ii, const char *path, grn_obj *lexicon, uin
}
if (path && strlen(path) + 6 >= PATH_MAX) { return NULL; }
seg = grn_io_create(ctx, path, sizeof(struct grn_ii_header),
S_SEGMENT, GRN_II_MAX_LSEG, grn_io_auto, GRN_IO_EXPIRE_SEGMENT);
S_SEGMENT, MAX_PSEG, grn_io_auto, GRN_IO_EXPIRE_SEGMENT);
if (!seg) { return NULL; }
if (path) {
strcpy(path2, path);
Expand Down

0 comments on commit a3c56a7

Please sign in to comment.