• Jerome Marchand's avatar
    dbslower: fix a python3 bytes/string issue int the -x option · bffd94f3
    Jerome Marchand authored
    In python3, the find method requires a bytes-like object. It fixes the
    following error:
    
    $ dbslower mysql -x $(which mysqld)
    Traceback (most recent call last):
      File "/usr/share/bcc/tools/dbslower", line 72, in <module>
        if mysql_func_name.find("COM_DATA") >= 0:
    TypeError: a bytes-like object is required, not 'str'
    
    Also the -x option is currently undocumented in the man page and the
    example file. So let's ix that too.
    bffd94f3
dbslower_example.txt 3.89 KB