git: sbin/hammer: Cleanup search directive structure

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Thu Sep 24 07:46:37 PDT 2015


commit 47fc33819c3bf4fc72d6d50cdaff5801cdf8735f
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Mon Sep 21 19:26:43 2015 +0900

    sbin/hammer: Cleanup search directive structure
    
    Remove btree elm fields from hammer show's search directive
    struct btree_search, and embed struct hammer_base_elm.
    
    hammer show originally only had localization:obj_id fields for
    search directives, so struct btree_search had these two fields,
    but since 913b6663 has added (quite long time ago) all the
    remaining fields rec_type:key:create_tid, struct btree_search
    could simply embed struct hammer_base_elm instead of having 5
    fields separately, which makes code clear.

Summary of changes:
 sbin/hammer/cmd_show.c | 80 +++++++++++++++++++++++++-------------------------
 1 file changed, 40 insertions(+), 40 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/47fc33819c3bf4fc72d6d50cdaff5801cdf8735f


-- 
DragonFly BSD source repository



More information about the Commits mailing list