fix the code following darnaut's recommendations

Signed-off-by: Frédéric -lefred- Descamps <lefred@percona.com>