Tarantool development patches archive
 help / color / mirror / Atom feed
* [Tarantool-patches] [PATCH 0/6] xlog: cleanup patches
@ 2020-06-17 22:03 Cyrill Gorcunov
  2020-06-17 22:03 ` [Tarantool-patches] [PATCH 1/6] box: drop inline from box_cfg_xc Cyrill Gorcunov
                   ` (7 more replies)
  0 siblings, 8 replies; 11+ messages in thread
From: Cyrill Gorcunov @ 2020-06-17 22:03 UTC (permalink / raw)
  To: tml; +Cc: Vladislav Shpilevoy, Alexander Turenko

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2020-06-22  7:43 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-17 22:03 [Tarantool-patches] [PATCH 0/6] xlog: cleanup patches Cyrill Gorcunov
2020-06-17 22:03 ` [Tarantool-patches] [PATCH 1/6] box: drop inline from box_cfg_xc Cyrill Gorcunov
2020-06-17 22:03 ` [Tarantool-patches] [PATCH 2/6] xlog: xlog_cursor -- eliminate redundant pad in the structure Cyrill Gorcunov
2020-06-17 22:03 ` [Tarantool-patches] [PATCH 3/6] xlog: xdir -- use PATH_MAX for dirname Cyrill Gorcunov
2020-06-17 22:03 ` [Tarantool-patches] [PATCH 4/6] xlog: use PATH_MAX for filename Cyrill Gorcunov
2020-06-18 23:14   ` Vladislav Shpilevoy
2020-06-19  7:19     ` Cyrill Gorcunov
2020-06-17 22:03 ` [Tarantool-patches] [PATCH 5/6] xlog: xlog_cursor -- use sizeof with snprintf for safety Cyrill Gorcunov
2020-06-17 22:03 ` [Tarantool-patches] [PATCH 6/6] xlog: xdir_format_filename -- use PATH_MAX Cyrill Gorcunov
2020-06-19 23:17 ` [Tarantool-patches] [PATCH 0/6] xlog: cleanup patches Vladislav Shpilevoy
2020-06-22  7:43 ` Kirill Yukhin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox