@@ -315,28 +315,28 @@ namespace questdb::ingress
315
315
class line_sender_buffer
316
316
{
317
317
public:
318
- explicit line_sender_buffer (size_t init_capacity = 64 * 1024 ) noexcept
319
- : line_sender_buffer{init_capacity , 127 }
318
+ explicit line_sender_buffer (size_t init_buf_size = 64 * 1024 ) noexcept
319
+ : line_sender_buffer{init_buf_size , 127 }
320
320
{}
321
321
322
322
line_sender_buffer (
323
- size_t init_capacity ,
323
+ size_t init_buf_size ,
324
324
size_t max_name_len) noexcept
325
325
: _impl{nullptr }
326
- , _init_capacity{init_capacity }
326
+ , _init_buf_size{init_buf_size }
327
327
, _max_name_len{max_name_len}
328
328
{
329
329
}
330
330
331
331
line_sender_buffer (const line_sender_buffer& other) noexcept
332
332
: _impl{::line_sender_buffer_clone (other._impl )}
333
- , _init_capacity {other._init_capacity }
333
+ , _init_buf_size {other._init_buf_size }
334
334
, _max_name_len{other._max_name_len }
335
335
{}
336
336
337
337
line_sender_buffer (line_sender_buffer&& other) noexcept
338
338
: _impl{other._impl }
339
- , _init_capacity {other._init_capacity }
339
+ , _init_buf_size {other._init_buf_size }
340
340
, _max_name_len{other._max_name_len }
341
341
{
342
342
other._impl = nullptr ;
@@ -351,7 +351,7 @@ namespace questdb::ingress
351
351
_impl = ::line_sender_buffer_clone (other._impl );
352
352
else
353
353
_impl = nullptr ;
354
- _init_capacity = other._init_capacity ;
354
+ _init_buf_size = other._init_buf_size ;
355
355
_max_name_len = other._max_name_len ;
356
356
}
357
357
return *this ;
@@ -363,7 +363,7 @@ namespace questdb::ingress
363
363
{
364
364
::line_sender_buffer_free (_impl);
365
365
_impl = other._impl ;
366
- _init_capacity = other._init_capacity ;
366
+ _init_buf_size = other._init_buf_size ;
367
367
_max_name_len = other._max_name_len ;
368
368
other._impl = nullptr ;
369
369
}
@@ -717,12 +717,12 @@ namespace questdb::ingress
717
717
if (!_impl)
718
718
{
719
719
_impl = ::line_sender_buffer_with_max_name_len (_max_name_len);
720
- ::line_sender_buffer_reserve (_impl, _init_capacity );
720
+ ::line_sender_buffer_reserve (_impl, _init_buf_size );
721
721
}
722
722
}
723
723
724
724
::line_sender_buffer* _impl;
725
- size_t _init_capacity ;
725
+ size_t _init_buf_size ;
726
726
size_t _max_name_len;
727
727
728
728
friend class line_sender ;
0 commit comments