[Tarantool-patches] [PATCH 0/6] xlog: cleanup patches

Cyrill Gorcunov gorcunov at gmail.com
Thu Jun 18 01:03:29 MSK 2020


While been working on the feature #4743 I've noticed that we've
a pure mess in PATH_MAX usage inside xlog code. Lets clean it
a bit while we're here. Basically the idea is to not use PATH_MAX+1
constant, the PATH_MAX already implies to include end of string.

branch gorcunov/gh-4743-path-max-cleanup

Cyrill Gorcunov (6):
  box: drop inline from box_cfg_xc
  xlog: xlog_cursor -- eliminate redundant pad in the structure
  xlog: xdir -- use PATH_MAX for dirname
  xlog: use PATH_MAX for filename
  xlog: xlog_cursor -- use sizeof with snprintf for safety
  xlog: xdir_format_filename -- use PATH_MAX

 src/box/box.cc |  2 +-
 src/box/xlog.c | 14 ++++++++------
 src/box/xlog.h | 12 ++++++------
 3 files changed, 15 insertions(+), 13 deletions(-)

-- 
2.26.2



More information about the Tarantool-patches mailing list