Skip to content

Commit

Permalink
delete: compact query log
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Dec 12, 2017
1 parent 5e807db commit 314a419
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
6 changes: 2 additions & 4 deletions lib/proc.c
Expand Up @@ -691,10 +691,8 @@ proc_delete(grn_ctx *ctx, int nargs, grn_obj **args, grn_user_data *user_data)

exit :
GRN_QUERY_LOG(ctx, GRN_QUERY_LOG_SIZE,
":", "delete(%u)",
n_deleted);
GRN_QUERY_LOG(ctx, GRN_QUERY_LOG_SIZE,
":", "error(%u)",
":", "delete(%u): [%u]",
n_deleted,
n_errors);
if (table) {
grn_obj_unlink(ctx, table);
Expand Down
3 changes: 1 addition & 2 deletions test/command/suite/delete/filter/query_log.expected
Expand Up @@ -11,6 +11,5 @@ delete --table Users --filter '_key @^ "b"'
[[0,0.0,0.0],true]
#>delete --filter "_key @^ \"b\"" --table "Users"
#:000000000000000 filter(2)
#:000000000000000 delete(2)
#:000000000000000 error(0)
#:000000000000000 delete(2): [0]
#<000000000000000 rc=0
3 changes: 1 addition & 2 deletions test/command/suite/delete/id/query_log.expected
Expand Up @@ -10,6 +10,5 @@ load --table Users
delete --table Users --id 2
[[0,0.0,0.0],true]
#>delete --id "2" --table "Users"
#:000000000000000 delete(1)
#:000000000000000 error(0)
#:000000000000000 delete(1): [0]
#<000000000000000 rc=0
3 changes: 1 addition & 2 deletions test/command/suite/delete/key/query_log.expected
Expand Up @@ -10,6 +10,5 @@ load --table Users
delete --table Users --key 'bob'
[[0,0.0,0.0],true]
#>delete --key "bob" --table "Users"
#:000000000000000 delete(1)
#:000000000000000 error(0)
#:000000000000000 delete(1): [0]
#<000000000000000 rc=0

0 comments on commit 314a419

Please sign in to comment.