Skip to content

Commit 56ad23b

Browse files
andr-sokolovgkodinov
authored andcommitted
MDEV-39487: mroonga: remove flags local variable from grn_io_open
This variable is unused.
1 parent 6060eec commit 56ad23b

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

  • storage/mroonga/vendor/groonga/lib

storage/mroonga/vendor/groonga/lib/io.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,6 @@ grn_io_open(grn_ctx *ctx, const char *path, grn_io_mode mode)
559559
grn_io *io;
560560
struct stat s;
561561
fileinfo fi;
562-
uint32_t flags = 0;
563562
uint32_t b;
564563
uint32_t header_size = 0, segment_size = 0, max_segment = 0, bs;
565564
if (!path || !*path) {
@@ -624,7 +623,6 @@ grn_io_open(grn_ctx *ctx, const char *path, grn_io_mode mode)
624623
header_size = h.header_size;
625624
segment_size = h.segment_size;
626625
max_segment = h.max_segment;
627-
flags = h.flags;
628626
grn_close(fd);
629627
if (segment_size == 0) {
630628
ERR(GRN_INCOMPATIBLE_FILE_FORMAT, "failed to open: segment size is 0");

0 commit comments

Comments
 (0)