File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1362,7 +1362,7 @@ std::string
13621362dump (Buffer<N, allocator> &buffer)
13631363{
13641364 size_t vec_len = 0 ;
1365- size_t IOVEC_MAX = 1024 ;
1365+ constexpr size_t IOVEC_MAX = 1024 ;
13661366 size_t block_cnt = 0 ;
13671367 struct iovec vec[IOVEC_MAX];
13681368 std::string output;
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ template<size_t N>
7171static void
7272eraseBuffer (tnt::Buffer<N> &buffer)
7373{
74- int IOVEC_MAX = 1024 ;
74+ constexpr int IOVEC_MAX = 1024 ;
7575 struct iovec vec[IOVEC_MAX];
7676 do {
7777 size_t vec_size = buffer.getIOV (buffer.begin (), vec, IOVEC_MAX);
@@ -89,7 +89,7 @@ static void
8989dumpBuffer (tnt::Buffer<N> &buffer, std::string &output)
9090{
9191 size_t vec_len = 0 ;
92- int IOVEC_MAX = 1024 ;
92+ constexpr int IOVEC_MAX = 1024 ;
9393 size_t block_cnt = 0 ;
9494 struct iovec vec[IOVEC_MAX];
9595 for (auto itr = buffer.begin (); itr != buffer.end (); itr += vec_len) {
@@ -575,7 +575,7 @@ buffer_out()
575575 fail_if (buf.debugSelfCheck ());
576576 save.unlink ();
577577 do {
578- int IOVEC_MAX = 1024 ;
578+ constexpr int IOVEC_MAX = 1024 ;
579579 struct iovec vec[IOVEC_MAX];
580580 size_t vec_size = buf.getIOV (buf.begin (), vec, IOVEC_MAX);
581581 buf.dropFront (vec_size);
You can’t perform that action at this time.
0 commit comments