Navigation Menu

Skip to content

Commit

Permalink
clearlock: fix backward incompatibility
Browse files Browse the repository at this point in the history
A database that is create by groonga <= 2.0.3 has "add" command in
database but "add" command doesn't load by default since groonga >=
2.0.4. So "object not found" error is occurred by traversing all
objects in the old database. But it can be ignored because it's not
desired backward incompatibility.
  • Loading branch information
kou committed Aug 14, 2012
1 parent 9b2fbe2 commit 8225137
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/db.c
Expand Up @@ -7463,6 +7463,10 @@ grn_obj_clear_lock(grn_ctx *ctx, grn_obj *obj)
case GRN_TABLE_NO_KEY:
grn_obj_clear_lock(ctx, tbl);
}
} else {
if (ctx->rc != GRN_SUCCESS) {
ERRCLR(ctx);
}
}
}
grn_table_cursor_close(ctx, cur);
Expand Down

0 comments on commit 8225137

Please sign in to comment.