Kouhei Sutou
null+****@clear*****
Sat Feb 27 16:21:36 JST 2016
Kouhei Sutou 2016-02-27 16:21:36 +0900 (Sat, 27 Feb 2016) New Revision: 4728d2598533a0b932964778865e9833372a5ecb https://github.com/groonga/groonga/commit/4728d2598533a0b932964778865e9833372a5ecb Message: object_inspect: support the number of records Modified files: lib/proc/proc_object_inspect.c test/command/suite/object_inspect/db.expected test/command/suite/object_inspect/table_dat_key.expected test/command/suite/object_inspect/table_hash_key.expected test/command/suite/object_inspect/table_no_key.expected test/command/suite/object_inspect/table_pat_key.expected Modified: lib/proc/proc_object_inspect.c (+2 -0) =================================================================== --- lib/proc/proc_object_inspect.c 2016-02-27 16:19:37 +0900 (7b6888c) +++ lib/proc/proc_object_inspect.c 2016-02-27 16:21:36 +0900 (6d54442) @@ -167,6 +167,8 @@ command_object_inspect_table(grn_ctx *ctx, grn_obj *obj) command_object_inspect_table_key(ctx, obj); grn_ctx_output_cstr(ctx, "value"); command_object_inspect_table_value(ctx, obj); + grn_ctx_output_cstr(ctx, "n_records"); + grn_ctx_output_uint64(ctx, grn_table_size(ctx, obj)); } grn_ctx_output_map_close(ctx); } Modified: test/command/suite/object_inspect/db.expected (+2 -1) =================================================================== --- test/command/suite/object_inspect/db.expected 2016-02-27 16:19:37 +0900 (f3aea43) +++ test/command/suite/object_inspect/db.expected 2016-02-27 16:21:36 +0900 (465e827) @@ -20,7 +20,8 @@ object_inspect "key": { "type": null }, - "value": null + "value": null, + "n_records": 255 } } ] Modified: test/command/suite/object_inspect/table_dat_key.expected (+2 -1) =================================================================== --- test/command/suite/object_inspect/table_dat_key.expected 2016-02-27 16:19:37 +0900 (a092a0b) +++ test/command/suite/object_inspect/table_dat_key.expected 2016-02-27 16:21:36 +0900 (f10f7c3) @@ -31,6 +31,7 @@ object_inspect Users "size": 4096 } }, - "value": null + "value": null, + "n_records": 2 } ] Modified: test/command/suite/object_inspect/table_hash_key.expected (+2 -1) =================================================================== --- test/command/suite/object_inspect/table_hash_key.expected 2016-02-27 16:19:37 +0900 (f0ca73c) +++ test/command/suite/object_inspect/table_hash_key.expected 2016-02-27 16:21:36 +0900 (ef759d4) @@ -43,6 +43,7 @@ object_inspect Users }, "size": 4 } - } + }, + "n_records": 2 } ] Modified: test/command/suite/object_inspect/table_no_key.expected (+2 -1) =================================================================== --- test/command/suite/object_inspect/table_no_key.expected 2016-02-27 16:19:37 +0900 (d6f46ed) +++ test/command/suite/object_inspect/table_no_key.expected 2016-02-27 16:21:36 +0900 (a306547) @@ -31,6 +31,7 @@ object_inspect Points }, "size": 8 } - } + }, + "n_records": 2 } ] Modified: test/command/suite/object_inspect/table_pat_key.expected (+2 -1) =================================================================== --- test/command/suite/object_inspect/table_pat_key.expected 2016-02-27 16:19:37 +0900 (4dc7560) +++ test/command/suite/object_inspect/table_pat_key.expected 2016-02-27 16:21:36 +0900 (599679e) @@ -43,6 +43,7 @@ object_inspect Users }, "size": 8 } - } + }, + "n_records": 2 } ] -------------- next part -------------- HTML����������������������������...Download